]> 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>
Fri, 12 Oct 2012 04:25:02 +0000 (15:25 +1100)
commit06ae8c8b0b67f6a9156c5315e37e03fffa3af722
treebdeab28ec53f4e03bf7a022e7998276f80d9c4e7
parentcadbea97dbda1219781d10f9dd81d73f4ab8d1c2
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