From 19dfcb91f777bcb18349581474dc84ed2fcebad1 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Tue, 31 Aug 2021 13:19:33 +0000 Subject: Fix use of wrong pointer argument when freeing firmware paging info in iwx(4). Found by mpi@ and gnezdo@ ok gnezdo@ --- sys/dev/pci/if_iwx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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 @@ -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; -- cgit v1.2.3