]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/block/mtip32xx/mtip32xx.c
mtip32xx: fix for crash when the device surprise removed during rebuild
authorAsai Thambi S P <asamymuthupa@micron.com>
Fri, 11 Jan 2013 13:17:12 +0000 (18:47 +0530)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jan 2013 13:35:58 +0000 (14:35 +0100)
commit58c49df378cde4ff64172483d593a1a5689c13a8
tree561681531660ae0f29ecc286cf921ab48ee11f2a
parent47cd4b3c7e80cc8d5ac82930c5af835870b5aba1
mtip32xx: fix for crash when the device surprise removed during rebuild

When rebuild is in progress, disk->queue is yet to be created. Surprise
removing the device will call remove()-> del_gendisk(). del_gendisk()
expect disk->queue be not NULL. Fix is to call put_disk() when disk_queue
is NULL.

Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c