]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
SCSI: scsi_transport_spi: fix oops in revalidate
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 5 Aug 2008 00:30:02 +0000 (00:30 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 20 Aug 2008 18:04:58 +0000 (11:04 -0700)
commite957c8b154298a5a4869a50915fa65f6dab73f9b
treea9bc66c763238e97349308f749e74a877e80f232
parente563ea630d215ccb1103226c09efa35c3c4aebb7
SCSI: scsi_transport_spi: fix oops in revalidate

commit e8bac9e0647dd04c83fd0bfe7cdfe2f6dfb100d0 upstream

The class_device->device conversion is causing an oops in revalidate
because it's assuming that the device_for_each_child iterator will only
return struct scsi_device children.  The conversion made all former
class_devices children of the device as well, so this assumption is
broken.  Fix it.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/scsi_transport_spi.c