]> 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>
Tue, 16 Oct 2012 02:47:54 +0000 (13:47 +1100)
commitd95cd749e6e9485b2d32eb0586c83b0ff8679f31
treeb1acdbdab0bebeb3fe234a5e1ad736d1a67ad382
parent147d36b2b7bfb092f7f7da50277587c421932ae7
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