[SCSI] mptfusion - fix panic in mptsas_slave_configure
authorMoore, Eric <Eric.Moore@lsil.com>
Thu, 13 Apr 2006 22:08:17 +0000 (16:08 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Fri, 14 Apr 2006 14:35:12 +0000 (09:35 -0500)
commit3c0c25b97c7d020ef07f6366cf1d668a8e980c7c
tree229cd04ca4836ebdf7b12bf71540d5b92d32f170
parent1e08dcb39c6b95ec84fc8bad97d5bdce879b76c9
[SCSI] mptfusion - fix panic in mptsas_slave_configure

Driver panic when RAID logical volume was present when driver
loaded, or when a RAID logical volume was created on the fly.

This issue was created in due to recent scsi_transport_sas change,
when sas_read_port_mode_page was added into the mptsas drivers
slave_config entry point.

This new API expects that all sdev's to be assocated to an rphy, however
that is not the case for logical volumes, as they are created using
scsi_add_device, instead of sas_rphy_add().

Signed-off-by: Eric Moore <Eric.Moore@lsil.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/message/fusion/mptsas.c