From 2ac33536812a23091342236186e054f7c53c6808 Mon Sep 17 00:00:00 2001 From: Jonathan Matthew Date: Wed, 22 Jan 2014 21:42:19 +0000 Subject: fix endianness for FC4 type registration --- sys/dev/ic/qla.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/qla.c') 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 @@ -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 */ -- cgit v1.2.3