From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261467AbTHZP0N (ORCPT ); Tue, 26 Aug 2003 11:26:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261263AbTHZP0M (ORCPT ); Tue, 26 Aug 2003 11:26:12 -0400 Received: from smtp.urbanet.ch ([195.202.193.135]:2021 "HELO anniviers.urbanet.ch") by vger.kernel.org with SMTP id S261509AbTHZP0H (ORCPT ); Tue, 26 Aug 2003 11:26:07 -0400 Subject: oops is when suspending ide-default driver From: Sylvain Pasche To: linux-kernel@vger.kernel.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1061911572.1128.8.camel@highscreen> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Tue, 26 Aug 2003 17:26:12 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hello, I've got an ide cdrom on my system, which uses the ide-cd module. If I try to suspend the system when the ide-cd module is not loaded, kernel oopses: [] start_request+0x11c/0x25e [] ide_do_request+0x226/0x3f7 [] ide_do_drive_cmd+0xd1/0x126 [] generic_ide_suspend+0x82/0x8f [] suspend_device+0x77/0xbd [] device_suspend+0x5b/0x76 [] suspend_prepare+0x44/0x91 [] enter_state+0x42/0x77 [] sys_reboot+0x2e0/0x33d [] handle_mm_fault+0xd8/0x169 [] do_page_fault+0x25e/0x4a4 [] write_chan+0x0/0x224 [] tty_write+0x0/0x2f2 [] vfs_write+0xba/0x10c [] sys_write+0x3f/0x5d [] do_page_fault+0x0/0x4a4 [] syscall_call+0x7/0xb If found out with some printk that it is because the DRIVER(drive)->start_power_step pointer is NULL is start_request when called with the ide-default subdriver. As soon as I load ide-cd, there's no oops anymore. I guess the fix might be not to run the suspend stuff if the driver has no start_power_step defined. Regards, Sylvain Pasche