]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-alua-group-id-mask
Imported linux-2.6.27.39 suse/xen patches.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.fixes / scsi-dh-alua-group-id-mask
diff --git a/src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-alua-group-id-mask b/src/patches/suse-2.6.27.31/patches.fixes/scsi-dh-alua-group-id-mask
deleted file mode 100644 (file)
index 1424089..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-From: Ilgu Hong <ilgu.hong@promise.com>
-Subject: Incorrect masking for group ID in scsi_dh_alua
-
-
-The buf[i] is a byte but we are only asking 4 bits off the
-group_id. This patch has us take off a byte.
-
-Signed-off-by: Ilgu Hong <ilgu.hong@promise.com>
-Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
-Signed-off-by: Hannes Reinecke <hare@suse.de>
-
-diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c
-index 1000acc..fc7003a 100644
---- a/drivers/scsi/device_handler/scsi_dh_alua.c
-+++ b/drivers/scsi/device_handler/scsi_dh_alua.c
-@@ -210,8 +210,8 @@ static unsigned submit_stpg(struct scsi_device *sdev, struct alua_dh_data *h)
-       /* Prepare the data buffer */
-       memset(h->buff, 0, stpg_len);
-       h->buff[4] = TPGS_STATE_OPTIMIZED & 0x0f;
--      h->buff[6] = (h->group_id >> 8) & 0x0f;
--      h->buff[7] = h->group_id & 0x0f;
-+      h->buff[6] = (h->group_id >> 8) & 0xff;
-+      h->buff[7] = h->group_id & 0xff;
-       rq = get_alua_req(sdev, h->buff, stpg_len, WRITE);
-       if (!rq)