diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-11-26 10:26:29 +0000 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-11-26 10:26:29 +0000 |
commit | 3136e903fa2d493ebc1b8a8fbdde2d3a17f85acd (patch) | |
tree | c118e957169be1b33325d704fa143417c6e4ff8d /drivers/mtd/nand/pasemi_nand.c | |
parent | 7854643a91eade84112dca9768eeb8d32463d101 (diff) | |
download | blackbird-op-linux-3136e903fa2d493ebc1b8a8fbdde2d3a17f85acd.tar.gz blackbird-op-linux-3136e903fa2d493ebc1b8a8fbdde2d3a17f85acd.zip |
[MTD] physmap: fix memory leak on physmap_flash_remove by using devres
physmap_flash_remove releases only last memory region. This causes
memory leak if multiple resources were provided.
This patch fixes this leakage by using devm_ functions.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand/pasemi_nand.c')
0 files changed, 0 insertions, 0 deletions