]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_transport_spi: fix oops in revalidate
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 29 Jul 2008 17:52:20 +0000 (12:52 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 30 Jul 2008 15:22:39 +0000 (10:22 -0500)
commit244a5e011770adc427ee252531a884c22a295128
tree3de02f02a05e6cb58ce5cb5521206685935ea403
parent28fb8cb6ff133d61fd2d8fbac7da7c4e94aa3775
[SCSI] scsi_transport_spi: fix oops in revalidate

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.

Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_transport_spi.c