diff options
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r-- | drivers/block/cciss.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index a12b95eef18e..49f05410a117 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -3095,9 +3095,10 @@ static void __devexit cciss_remove_one (struct pci_dev *pdev) | |||
3095 | /* remove it from the disk list */ | 3095 | /* remove it from the disk list */ |
3096 | for (j = 0; j < NWD; j++) { | 3096 | for (j = 0; j < NWD; j++) { |
3097 | struct gendisk *disk = hba[i]->gendisk[j]; | 3097 | struct gendisk *disk = hba[i]->gendisk[j]; |
3098 | if (disk->flags & GENHD_FL_UP) | 3098 | if (disk->flags & GENHD_FL_UP) { |
3099 | blk_cleanup_queue(disk->queue); | ||
3100 | del_gendisk(disk); | 3099 | del_gendisk(disk); |
3100 | blk_cleanup_queue(disk->queue); | ||
3101 | } | ||
3101 | } | 3102 | } |
3102 | 3103 | ||
3103 | pci_free_consistent(hba[i]->pdev, NR_CMDS * sizeof(CommandList_struct), | 3104 | pci_free_consistent(hba[i]->pdev, NR_CMDS * sizeof(CommandList_struct), |