Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 20 Oct 2002 14:11:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 20 Oct 2002 14:11:07 -0400 Received: from e32.co.us.ibm.com ([32.97.110.130]:57288 "EHLO e32.co.us.ibm.com") by vger.kernel.org with ESMTP id ; Sun, 20 Oct 2002 14:11:06 -0400 Date: Sun, 20 Oct 2002 11:18:25 -0700 From: Mike Anderson To: Thomas Molina Cc: linux-kernel@vger.kernel.org Subject: Re: ide-scsi segfaults under 2.5.44 Message-ID: <20021020181825.GA3915@beaverton.ibm.com> Mail-Followup-To: Thomas Molina , linux-kernel@vger.kernel.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Operating-System: Linux 2.0.32 on an i486 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1682 Lines: 45 Thomas, It looks like sg.c was missed in the update from put_device to device_unregister. I have only compile tested the patch below, but it should fix the problem. I will have a chance to run later on today. Thomas Molina [tmolina@cox.net] wrote: > Oct 19 22:10:30 dad kernel: [] > scsi_driverfs_bus_type_Rfc6baff9+0x0/0x80 [scsi_mod] > Oct 19 22:10:30 dad kernel: [] put_driver+0x28/0x50 > Oct 19 22:10:30 dad kernel: [] sg_template+0x48/0xa0 [sg] > Oct 19 22:10:30 dad kernel: [] exit_sg+0x4c/0x50 [sg] > Oct 19 22:10:30 dad kernel: [] sg_template+0x48/0xa0 [sg] > Oct 19 22:10:30 dad kernel: [] free_module+0x1e/0xb0 > Oct 19 22:10:30 dad kernel: [] sys_delete_module+0xe7/0x1c0 > Oct 19 22:10:30 dad kernel: [] syscall_call+0x7/0xb > Oct 19 22:10:30 dad kernel: -andmike -- Michael Anderson andmike@us.ibm.com sg.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) ------ ===== drivers/scsi/sg.c 1.30 vs edited ===== --- 1.30/drivers/scsi/sg.c Fri Oct 18 11:27:30 2002 +++ edited/drivers/scsi/sg.c Sun Oct 20 10:59:33 2002 @@ -1607,7 +1607,7 @@ sdp->de = NULL; device_remove_file(&sdp->sg_driverfs_dev, &dev_attr_type); device_remove_file(&sdp->sg_driverfs_dev, &dev_attr_kdev); - put_device(&sdp->sg_driverfs_dev); + device_unregister(&sdp->sg_driverfs_dev); if (NULL == sdp->headfp) vfree((char *) sdp); } - 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/