]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memstick: memory leak on error in msb_ftl_scan()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 12 Oct 2012 04:22:43 +0000 (15:22 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 18 Oct 2012 02:23:51 +0000 (13:23 +1100)
commit945dc1dfc360c99b0bda9da49a421949a2161f97
treeb4498f318f9d48d5eccbc76670b2506b9d96644a
parentfbf3f5cea9b4ed1926a267cb440ad4f5114bf6cd
memstick: memory leak on error in msb_ftl_scan()

We need to free "overwrite_flags" before returning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Maxim Levitsky <maximlevitsly@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/memstick/core/ms_block.c