lkml.org 
[lkml]   [2004]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectcpqarray patches for 2.6 [2 of 5]
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.025 / U:22.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site