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.
This commit is contained in:
parent
1592bb3c79
commit
d0a43c699d
@ -3361,7 +3361,7 @@ mfi_ioctl(struct cdev *dev, u_long cmd, caddr_t arg, int flag, struct thread *td
|
||||
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]
|
||||
|
Loading…
Reference in New Issue
Block a user