Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f333991 authored by Harvey Harrison's avatar Harvey Harrison Committed by James Bottomley
Browse files

[SCSI] scsi: use get_unaligned_* helpers

parent 3a12b199
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -591,7 +591,7 @@ static void iscsi_scsi_cmd_rsp(struct iscsi_conn *conn, struct iscsi_hdr *hdr,
			goto out;
		}

		senselen = be16_to_cpu(get_unaligned((__be16 *) data));
		senselen = get_unaligned_be16(data);
		if (datalen < senselen)
			goto invalid_datalen;