diff options
author | John Baldwin <jhb@FreeBSD.org> | 2016-08-29 01:59:18 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2016-08-29 01:59:18 +0000 |
commit | 27dc50b0f0aab948e2cf60f2f50db1f36ca75054 (patch) | |
tree | 7f937d153608c234fc05737dede6784ace5a9668 /sys/dev/mfi | |
parent | 24f4202df8ba19c09c248f190a6c1a94a26a74d4 (diff) | |
download | src-27dc50b0f0aab948e2cf60f2f50db1f36ca75054.tar.gz src-27dc50b0f0aab948e2cf60f2f50db1f36ca75054.zip |
Add missing array subscript.
This fixes a tautological pointer comparison warning, but would also a
real bug for a platform where bus_dmamap_unload of a static allocation
is not a no-op.
Notes
Notes:
svn path=/head/; revision=304971
Diffstat (limited to 'sys/dev/mfi')
-rw-r--r-- | sys/dev/mfi/mfi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mfi/mfi.c b/sys/dev/mfi/mfi.c index 2bfcc83fdb2a..e1737c030b08 100644 --- a/sys/dev/mfi/mfi.c +++ b/sys/dev/mfi/mfi.c @@ -3361,7 +3361,7 @@ out: if (cm->cm_frame->header.cmd == MFI_CMD_STP) { for (i = 0; i < 2; i++) { if (sc->kbuff_arr[i]) { - if (sc->mfi_kbuff_arr_busaddr != 0) + if (sc->mfi_kbuff_arr_busaddr[i] != 0) bus_dmamap_unload( sc->mfi_kbuff_arr_dmat[i], sc->mfi_kbuff_arr_dmamap[i] |