Skip to contentSkip to conversation

scsi: use get_unaligned_* helpers

PATCH Applied Harvey Harrison 2 participants 2 messages May 2, 2008 – May 5, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/8 scsi: use get_unaligned_* helpers

---
 drivers/scsi/libiscsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/libiscsi.c +1 -1
index 010c1b9..7646e86 100644
@@ -508,7 +508,7 @@ invalid_datalen:
 			goto out;
 		}
 
-		senselen = be16_to_cpu(get_unaligned((__be16 *) data));
+		senselen = get_unaligned_be16(data);
 		if (datalen < senselen)
 			goto invalid_datalen;
 
Signature · 1 line
1.5.5.1.350.gbbbf
#1 lore raw
Quoted 10 lines · Harvey Harrison
---
 drivers/scsi/libiscsi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/libiscsi.c +0 -0
index 010c1b9..7646e86 100644

drivers/scsi/libiscsi.c invalid_datalen: · line 514

Quoted 8 lines
drivers/scsi/libiscsi.c +1 -1
@@ -508,7 +508,7 @@ invalid_datalen:
 			goto out;
 		}
 
-		senselen = be16_to_cpu(get_unaligned((__be16 *) data));
+		senselen = get_unaligned_be16(data);
 		if (datalen < senselen)
 			goto invalid_datalen;
 

This looks ok. Thanks.

If It does not get picked up by Andrew then I will send it with the other iscsi updates when the next feature window opens.