From: stsp Date: Tue, 31 Aug 2021 13:19:32 +0000 (+0000) Subject: Fix use of wrong pointer argument when freeing firmware paging info in iwx(4). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=686958b66615237caea8d7ad6523db3d14b4097a;p=openbsd Fix use of wrong pointer argument when freeing firmware paging info in iwx(4). Found by mpi@ and gnezdo@ ok gnezdo@ --- 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;