linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] fix a memory leak related to request_mem_region/release_mem_region usage
@ 2010-11-22  8:42 Axel Lin
  2010-11-22  8:44 ` [PATCH 1/4] [ARM] davinci_mmc: fix a memory leak Axel Lin
  0 siblings, 1 reply; 7+ messages in thread
From: Axel Lin @ 2010-11-22  8:42 UTC (permalink / raw)
  To: linux-kernel
  Cc: Chris Ball, Andrew Morton, linux-mmc, Vipin Bhandari,
	David Brownell, Nicolas Pitre, Eric Miao

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(-)

-- 
1.7.2




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-05  2:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-22  8:42 [PATCH 0/4] fix a memory leak related to request_mem_region/release_mem_region usage Axel Lin
2010-11-22  8:44 ` [PATCH 1/4] [ARM] davinci_mmc: fix a memory leak Axel Lin
2010-11-22  8:45   ` [PATCH 2/4] [ARM] mvsdio: " Axel Lin
2010-11-22  8:46     ` [PATCH 3/4] [ARM] pxamci: " Axel Lin
2010-11-22  8:47       ` [PATCH 4/4] [ARM] mxcmmc: remove a unnecessary release_resource() call Axel Lin
2010-11-25  9:03         ` Sascha Hauer
2010-12-05  2:51           ` Chris Ball

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).