diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-05-31 21:28:09 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-05-31 21:28:09 +0000 |
commit | 99b922fe751cf92f0f69b7b36f9f972376a662bc (patch) | |
tree | a797797659b44e7701289a6073e682a2d6059069 | |
parent | cfd7051a8f09afaed1201745b347d89d586d0f9a (diff) |
byteswap the ioc_status field so we can respond to scsi things properly on
bigendian archs. this lets ses attach now.
-rw-r--r-- | sys/dev/ic/mpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c index fd06e317cf4..3923e9c797b 100644 --- a/sys/dev/ic/mpi.c +++ b/sys/dev/ic/mpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi.c,v 1.20 2006/05/31 06:17:00 dlg Exp $ */ +/* $OpenBSD: mpi.c,v 1.21 2006/05/31 21:28:08 dlg Exp $ */ /* * Copyright (c) 2005, 2006 David Gwynne <dlg@openbsd.org> @@ -701,7 +701,7 @@ mpi_scsi_cmd_done(struct mpi_ccb *ccb) #endif /* MPI_DEBUG */ xs->status = sie->scsi_status; - switch (sie->ioc_status) { + switch (letoh16(sie->ioc_status)) { case MPI_IOCSTATUS_SCSI_DATA_OVERRUN: xs->error = XS_DRIVER_STUFFUP; break; |