From e6632c32fbea670ad9b4240e468f69af301915ac Mon Sep 17 00:00:00 2001 From: Chaithanya Garrepalli Date: Thu, 9 Apr 2020 20:17:43 +0530 Subject: [PATCH] qcacmn: use soc osdev for unmap in dp_tx_comp_free_buf In pdev deinit path tx_desc->vdev can be NULL in dp_tx_comp_free_buf use soc->osdev to unmap instead of vdev Change-Id: I8b390656d482fed3c8c85d928860222a88325ca1 --- dp/wifi3.0/dp_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_tx.c b/dp/wifi3.0/dp_tx.c index a965f178f1..5c65ee6c96 100644 --- a/dp/wifi3.0/dp_tx.c +++ b/dp/wifi3.0/dp_tx.c @@ -2821,7 +2821,7 @@ static inline void dp_tx_comp_free_buf(struct dp_soc *soc, } } - qdf_nbuf_unmap_nbytes_single(vdev->osdev, nbuf, + qdf_nbuf_unmap_nbytes_single(soc->osdev, nbuf, QDF_DMA_TO_DEVICE, nbuf->len); if (qdf_unlikely(!vdev)) {