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
This commit is contained in:
Chaithanya Garrepalli
2020-04-09 20:17:43 +05:30
committed by nshrivas
parent 192c8433f7
commit e6632c32fb

View File

@@ -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)) {