summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/qla.c
diff options
context:
space:
mode:
authorjmatthew <jmatthew@openbsd.org>2014-01-22 21:42:18 +0000
committerjmatthew <jmatthew@openbsd.org>2014-01-22 21:42:18 +0000
commit4ba9eb81f9dde979022ae3eef823972fda7851b6 (patch)
tree62fbc8354d9143eb74dc273a9f2b443f42da31e0 /sys/dev/ic/qla.c
parentthis gets rid of NO_CCB in vdsk. it considers space on the tx ring (diff)
downloadwireguard-openbsd-4ba9eb81f9dde979022ae3eef823972fda7851b6.tar.xz
wireguard-openbsd-4ba9eb81f9dde979022ae3eef823972fda7851b6.zip
fix endianness for FC4 type registration
Diffstat (limited to 'sys/dev/ic/qla.c')
-rw-r--r--sys/dev/ic/qla.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/qla.c b/sys/dev/ic/qla.c
index 103fa3d264d..8ff63beb40c 100644
--- a/sys/dev/ic/qla.c
+++ b/sys/dev/ic/qla.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qla.c,v 1.7 2014/01/21 06:10:14 jsg Exp $ */
+/* $OpenBSD: qla.c,v 1.8 2014/01/22 21:42:18 jmatthew Exp $ */
/*
* Copyright (c) 2011 David Gwynne <dlg@openbsd.org>
@@ -620,7 +620,7 @@ qla_attach(struct qla_softc *sc)
rft->subcmd = htole16(QLA_SNS_RFT_ID);
rft->max_word = htole16(sizeof(struct qla_sns_req_hdr) / 4);
rft->port_id = htole32(sc->sc_port_id);
- rft->fc4_types[0] = (1 << QLA_FC4_SCSI);
+ rft->fc4_types[0] = htole16(1 << QLA_FC4_SCSI);
if (qla_sns_req(sc, sc->sc_scratch, sizeof(*rft))) {
printf("%s: RFT_ID failed\n", DEVNAME(sc));
/* we might be able to continue after this fails */