Skip to content

fix a memory leak related to request_mem_region/release_mem_region usage

Axel Lin linux-mmc lkml 1 version Applied

Status from this message: Pushed to mmc-next for .38, thanks.

Get series with b4
b4 am 1290415359.5471.4.camel@mola

Versions newest first

  1. v1 Latest4 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4davinci_mmc: fix a memory leakdrivers/mmc/host/davinci_mmc.c+3 -20 replies
2/4mvsdio: fix a memory leakdrivers/mmc/host/mvsdio.c+2 -20 replies
3/4pxamci: fix a memory leakdrivers/mmc/host/pxamci.c+2 -20 replies
4/4mxcmmc: remove a unnecessary release_resource() calldrivers/mmc/host/mxcmmc.c+0 -12 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchSascha Hauer
1/4
2/4
3/4
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] fix a memory leak related to request_mem_region/release_mem_region usage

This serial of patches fixes a memory leak related to request_mem_region and release_mem_region usage.

request_mem_region() will call kzalloc to allocate memory for struct resource. release_resource() unregisters the resource but does not free the allocated memory, thus use release_mem_region() instead to fix the memory leak.

Axel Lin (4):
[ARM] davinci_mmc: fix a memory leak
[ARM] mvsdio: fix a memory leak
[ARM] pxamci: fix a memory leak
[ARM] mxcmmc: remove a unnecessary release_resource() call

 drivers/mmc/host/davinci_mmc.c |    5 +++--
 drivers/mmc/host/mvsdio.c      |    4 ++--
 drivers/mmc/host/mxcmmc.c      |    1 -
 drivers/mmc/host/pxamci.c      |    4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)
Signature · 1 line
1.7.2