summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2014-02-15 09:40:32 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2014-02-15 09:40:32 +0000
commiteedd838df34a8ebd058f49c8398b9495d9bead27 (patch)
treed9054647c1c2867d579c440c15eb87cbf80c1c50 /sys/dev
parentd650f410518e3a9176c896c39036a35391351577 (diff)
fix endianness of luns in iocbs
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/qle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c
index b009785ba2c..258874950e1 100644
--- a/sys/dev/pci/qle.c
+++ b/sys/dev/pci/qle.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qle.c,v 1.3 2014/02/14 12:04:16 jmatthew Exp $ */
+/* $OpenBSD: qle.c,v 1.4 2014/02/15 09:40:31 jmatthew Exp $ */
/*
* Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org>
@@ -2292,8 +2292,8 @@ qle_put_cmd(struct qle_softc *sc, void *buf, struct scsi_xfer *xs,
}
req->req_data_len = htole32(xs->datalen);
}
- req->req_fcp_lun[0] = htole16((lun >> 16) & 0xffff);
- req->req_fcp_lun[1] = htole16(lun & 0xffff);
+ req->req_fcp_lun[0] = htobe16(lun & 0xffff);
+ req->req_fcp_lun[1] = htobe16((lun >> 16) & 0xffff);
req->req_target_id = htole32(target_port & 0xffffff);