提交 6a445d3b 编写于 作者: M Mike Miller 提交者: Linus Torvalds

[PATCH] cciss: bug fix in cciss_remove_one

This patch fixes a bug in cciss_remove_one.  A set of braces was missing for
the if statement causing an Oops on driver unload.
Signed-off-by: NMike Miller <mike.miller@hp.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 33079b21
...@@ -3095,9 +3095,10 @@ static void __devexit cciss_remove_one (struct pci_dev *pdev) ...@@ -3095,9 +3095,10 @@ static void __devexit cciss_remove_one (struct pci_dev *pdev)
/* remove it from the disk list */ /* remove it from the disk list */
for (j = 0; j < NWD; j++) { for (j = 0; j < NWD; j++) {
struct gendisk *disk = hba[i]->gendisk[j]; struct gendisk *disk = hba[i]->gendisk[j];
if (disk->flags & GENHD_FL_UP) if (disk->flags & GENHD_FL_UP) {
blk_cleanup_queue(disk->queue);
del_gendisk(disk); del_gendisk(disk);
blk_cleanup_queue(disk->queue);
}
} }
pci_free_consistent(hba[i]->pdev, NR_CMDS * sizeof(CommandList_struct), pci_free_consistent(hba[i]->pdev, NR_CMDS * sizeof(CommandList_struct),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册