cpqarray patches for 2.6 [2 of 5]

From: mikem
Date: Tue Mar 16 2004 - 11:32:44 EST


This is the second of 5 patches for cpqarray. The patch fixes an Oops when unloading the driver. Please apply in order.

Thanks,
mikem
-------------------------------------------------------------------------------
* Fix for segmentation fault when calling rmmod


drivers/block/cpqarray.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.1/drivers/block/cpqarray.c~cpqarray_0 2004-02-11 15:45:44.381344184 -0600
+++ linux-2.6.1-root/drivers/block/cpqarray.c 2004-02-11 15:47:34.110662792 -0600
@@ -300,7 +300,6 @@ static void __exit cpqarray_exit(void)
iounmap(hba[i]->vaddr);
unregister_blkdev(COMPAQ_SMART2_MAJOR+i, hba[i]->devname);
del_timer(&hba[i]->timer);
- blk_cleanup_queue(hba[i]->queue);
remove_proc_entry(hba[i]->devname, proc_array);
pci_free_consistent(hba[i]->pci_dev,
NR_CMDS * sizeof(cmdlist_t), (hba[i]->cmd_pool),
@@ -313,6 +312,7 @@ static void __exit cpqarray_exit(void)
devfs_remove("ida/c%dd%d",i,j);
put_disk(ida_gendisk[i][j]);
}
+ blk_cleanup_queue(hba[i]->queue);
}
devfs_remove("ida");
remove_proc_entry("cpqarray", proc_root_driver);

_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/