]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memstick: use after free in msb_disk_release()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 23 Oct 2012 02:49:59 +0000 (13:49 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 23 Oct 2012 03:11:40 +0000 (14:11 +1100)
commit6a36817f1e54a99df71d1cb661790d1537a10e86
tree3aeed4b1275b046a574f9d1d2160f9167550cd40
parentb3f72344e446cbeceb415cfac78ccb3e5913fe3b
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