[PATCH 2/4] tgt: Fix issue with returning full key on read.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On read reservation only 32 bits was being returned. Change to using
put_unaligned_be64 in spc_pr_read_reservation.

Signed-off-by: Mike Anderson <andmike@xxxxxxxxxxxxxxxxxx>
---
 usr/spc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/spc.c b/usr/spc.c
index 11712de..e19a743 100644
--- a/usr/spc.c
+++ b/usr/spc.c
@@ -852,7 +852,7 @@ static int spc_pr_read_reservation(int host_no, struct scsi_cmd *cmd)
 		else
 			res_key = reg->key;
 
-		put_unaligned_be32(res_key, &buf[8]);
+		put_unaligned_be64(res_key, &buf[8]);
 		buf[21] = ((reg->pr_scope << 4) & 0xf0) | (reg->pr_type & 0x0f);
 	} else
 		put_unaligned_be32(0, &buf[4]);
-- 
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux