drivers/misc/atmel_tclib.c: fix a memory leak
authorAxel Lin <axel.lin@gmail.com>
Tue, 22 Mar 2011 23:34:01 +0000 (16:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Mar 2011 00:44:11 +0000 (17:44 -0700)
commita844b43ca078d7dd8f0cd13c6f030ec62a996975
treec74c3ffe40ae31026e69e916ecaec29f5b239982
parent6f7d485e13c6c07348cf9cfd1b735fe1bcf3caa9
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>
drivers/misc/atmel_tclib.c