]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memstick: use after free in msb_disk_release()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 12 Oct 2012 04:22:42 +0000 (15:22 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 15 Oct 2012 01:21:56 +0000 (12:21 +1100)
commit6831fd7c8f24f6627c84b74c47e9270087cd8d71
treea959628bd6cb13f0eb73d9c517843684d68f64fa
parent7003bb87a7443ea60865936a7267410484068a2c
memstick: use after free in msb_disk_release()

The original code dereferenced "msb" after freeing it.

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