summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2021-08-31 13:19:33 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2021-08-31 13:19:33 +0000
commit19dfcb91f777bcb18349581474dc84ed2fcebad1 (patch)
tree815f8aa70e304d4699e9b6eb963596079f4ad5d9 /sys/dev
parentecc6d23eaaa90ce880382aa27dded997226361b2 (diff)
Fix use of wrong pointer argument when freeing firmware paging info in iwx(4).
Found by mpi@ and gnezdo@ ok gnezdo@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_iwx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c
index 892fdfb4a68..096caf79896 100644
--- a/sys/dev/pci/if_iwx.c
+++ b/sys/dev/pci/if_iwx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwx.c,v 1.98 2021/08/29 20:31:18 gnezdo Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.99 2021/08/31 13:19:32 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -580,7 +580,7 @@ void iwx_ctxt_info_free_paging(struct iwx_softc *sc)
/* free paging*/
for (i = 0; i < dram->paging_cnt; i++)
- iwx_dma_contig_free(dram->paging);
+ iwx_dma_contig_free(&dram->paging[i]);
free(dram->paging, M_DEVBUF, dram->paging_cnt * sizeof(*dram->paging));
dram->paging_cnt = 0;