linux/drivers/scsi/device_handler
Hannes Reinecke cfde3fa166 [SCSI] scsi_dh_alua: Fix Erroneous TPG ID check
For Target Portal Group IDs occupying the full 2 bytes in the
RTPG response, the following group_id check in the alua_rtpg
routine always fails in scsi_dh_alua.c:

if (h->group_id == (ucp[2] << 8) + ucp[3]) {

This causes the ALUA handler to wrongly identify the AAS of
a specified device as well as incorrectly interpreting the
supported AAS of the target as seen by the following entries
in the /var/log/messages:

"alua: port group 3ea state A supports tousna"
"alua: port group 3e9 state A supports tousna"

This is because 'ucp' is wrongly declared in alua_rtpg as
a character pointer instead of an unsigned character pointer.

Signed-off-by: Martin George <marting@netapp.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2011-08-30 12:32:41 -07:00
..
Kconfig [SCSI] scsi_dh: add generic SPC-3 alua handler 2008-07-26 15:14:52 -04:00
Makefile [SCSI] scsi_dh: add generic SPC-3 alua handler 2008-07-26 15:14:52 -04:00
scsi_dh_alua.c [SCSI] scsi_dh_alua: Fix Erroneous TPG ID check 2011-08-30 12:32:41 -07:00
scsi_dh_emc.c [SCSI] scsi_dh: cosmetic change to sizeof() 2011-02-12 14:13:34 -06:00
scsi_dh_hp_sw.c [SCSI] scsi_dh: cosmetic change to sizeof() 2011-02-12 14:13:34 -06:00
scsi_dh_rdac.c [SCSI] dh_rdac: Associate HBA and storage in rdac_controller to support partitions in storage 2011-07-28 11:38:47 +04:00
scsi_dh.c [SCSI] scsi_dh: Check for sdev state in store_dh_state() 2011-08-30 12:31:24 -07:00