From: Kai Makisara Date: Tue, 2 Aug 2005 09:21:51 +0000 (+0300) Subject: [SCSI] Fix SCSI tape oops at module removal X-Git-Tag: v2.6.13-rc6~53^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2c96f46f46df072e49200a1181b3086cd2f08a6;p=pandora-kernel.git [SCSI] Fix SCSI tape oops at module removal Removing the SCSI tape module results in an oops in class_device_destroy if any devices are present. The patch at the end of this message fixes the bug by moving class_destroy() later in exit_st() so that the class still exists when devices are removed. (The bug is old but class_simple_device_remove() did nothing when the class did not exist.) The patch also fixes a "class leak" in init_st() error path. I would like to get this into 2.6.13 but it may be too late? Signed-off-by: Kai Makisara Signed-off-by: James Bottomley --- Reading git-diff-tree failed