summaryrefslogtreecommitdiffstats
path: root/sys/dev/mfi
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2006-06-20 22:17:54 +0000
committerps <ps@FreeBSD.org>2006-06-20 22:17:54 +0000
commitf51ea9f5e21844c7505b147fb0d3136d876562e4 (patch)
tree1ed1dc9e0440ed0918a7a8bdfb063c4b5667adc0 /sys/dev/mfi
parent2801f35e73a837f8af49d6b412ebd6507eb52ec1 (diff)
downloadFreeBSD-src-f51ea9f5e21844c7505b147fb0d3136d876562e4.zip
FreeBSD-src-f51ea9f5e21844c7505b147fb0d3136d876562e4.tar.gz
Fix a typo when getting the log_state and set the flags on the
command to signify it is being polled and expecting data to be dma'd from the card.
Diffstat (limited to 'sys/dev/mfi')
-rw-r--r--sys/dev/mfi/mfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mfi/mfi.c b/sys/dev/mfi/mfi.c
index 018cdb1..ddddc59 100644
--- a/sys/dev/mfi/mfi.c
+++ b/sys/dev/mfi/mfi.c
@@ -588,7 +588,7 @@ mfi_get_log_state(struct mfi_softc *sc, struct mfi_evt_log_state **log_state)
(void **)log_state, sizeof(**log_state));
if (error)
goto out;
- cm->cm_len = sizeof(struct mfi_evt_log_state);
+ cm->cm_flags = MFI_CMD_DATAIN | MFI_CMD_POLLED;
if ((error = mfi_mapcmd(sc, cm)) != 0) {
device_printf(sc->mfi_dev, "Log state buffer map failed\n");
OpenPOWER on IntegriCloud