diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-03-23 00:34:01 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-23 01:44:11 +0100 |
commit | a844b43ca078d7dd8f0cd13c6f030ec62a996975 (patch) | |
tree | c74c3ffe40ae31026e69e916ecaec29f5b239982 /drivers/dma/ppc4xx | |
parent | drivers/misc/hmc6352.c: fix wrong return value checking for i2c_master_recv() (diff) | |
download | linux-a844b43ca078d7dd8f0cd13c6f030ec62a996975.tar.xz linux-a844b43ca078d7dd8f0cd13c6f030ec62a996975.zip |
drivers/misc/atmel_tclib.c: fix a memory leak
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.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/dma/ppc4xx')
0 files changed, 0 insertions, 0 deletions