mtip32xx: Fix accessing freed memory
authorSelvan Mani <smani@micron.com>
Wed, 24 Jun 2015 14:48:46 +0000 (08:48 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 24 Jun 2015 14:48:46 +0000 (08:48 -0600)
commit98f57c5196f7a1f681246858f5860c1120d01ca9
tree1bda5604571185810e22be1258890d9664bff43a
parent51ef72bda70841fddd595142ed0e7e0fc571c500
mtip32xx: Fix accessing freed memory

In mtip_pci_remove(), driver data 'dd' is accessed after freeing it. This
is a residue of SRSI code cleanup in the patch 016a41c38821 "mtip32xx: fix
crash on surprise removal of the drive". Removed the bit flags
MTIP_DDF_REMOVE_DONE_BIT and MTIP_PF_SR_CLEANUP_BIT.

Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Vignesh Gunasekaran <vgunasekaran@micron.com>
Signed-off-by: Selvan Mani <smani@micron.com>
Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c
drivers/block/mtip32xx/mtip32xx.h