]> 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>
Sat, 3 Nov 2012 00:41:59 +0000 (11:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Nov 2012 04:15:01 +0000 (15:15 +1100)
commit39fc62b5970d79b98cdc27bbae2e32a30aa39076
tree55b35d983639d2352359bf2bc898f3a6e77fd803
parent3d3afba67c6f31c37d6ee0323535f14b56c72b04
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