]> 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>
Tue, 23 Oct 2012 02:49:59 +0000 (13:49 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 24 Oct 2012 03:20:03 +0000 (14:20 +1100)
commitd007d7c4f5fd0cc9f1d4287f1c13c001c034b803
treec123aa51876cc9c84737d27aa2bd7b49bb991d90
parent7fe4443f098d6e4da9923b498061d4df11af4b9b
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