]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_transport_sas; fix user_scan
authorJames Bottomley <James.Bottomley@steeleye.com>
Fri, 19 May 2006 15:49:37 +0000 (10:49 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 20 May 2006 14:01:21 +0000 (09:01 -0500)
commitc008306a40b697f89a6fc6aee24f2b7f8853629a
tree97b4c8487de9b92fe5eb05e6f57a22c783c0594e
parentece45db67a91f036ef46ee1093463c65910f023e
[SCSI] scsi_transport_sas; fix user_scan

the user_scan() callback currently has the potential to identify the
wrong device in the presence of expanders.  This is because it finds
the first device with a matching target_id, which might be an
expander.  Fix this by making it look specifically for end devices.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_transport_sas.c