cciss: Fix excessive gendisk freeing bug on driver unload.
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Thu, 17 Sep 2009 18:47:50 +0000 (13:47 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 1 Oct 2009 19:15:43 +0000 (21:15 +0200)
commit2c935593ac1871211b43a54f023dc3bc605ad346
tree7ce33ec7a0f1bb7386a347ed1e31c7f2513ed5c2
parent2d11d9931f5968bddac50d9d224c4812d4be869a
cciss: Fix excessive gendisk freeing bug on driver unload.

Fix bug that free_hba was calling put_disk for all gendisk[]
pointers -- all 1024 of them -- regardless of whether the were
used or not (NULL).  This bug could cause rmmod to oops if logical
drives had been deleted during the driver's lifetime.

Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/block/cciss.c