Message ID | 1558964139-13399-1-git-send-email-periyasa@codeaurora.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 911365b0f0a86aae904e7f3be8de4dd666a24a4b |
Delegated to: | Kalle Valo |
Headers | show |
Series | ath11k: Fix invalid dma address access in hal rx | expand |
Karthikeyan Periyasamy <periyasa@codeaurora.org> wrote: > ath11k_hal_rx_buf_addr_info_get() populating the MSB of the > dma address from the info0 member, which is invalid. It has > to populate the MSB from info1 member. > > Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org> Patch applied to ath.git, thanks. 911365b0f0a8 ath11k: Fix invalid dma address access in hal rx
diff --git a/drivers/net/wireless/ath/ath11k/hal_rx.c b/drivers/net/wireless/ath/ath11k/hal_rx.c index 6eb47d9..c37340f 100644 --- a/drivers/net/wireless/ath/ath11k/hal_rx.c +++ b/drivers/net/wireless/ath/ath11k/hal_rx.c @@ -286,7 +286,7 @@ void ath11k_hal_rx_buf_addr_info_get(void *desc, dma_addr_t *paddr, struct buffer_addr *binfo = (struct buffer_addr *)desc; *paddr = - (((u64)FIELD_GET(BUFFER_ADDR_INFO1_ADDR, binfo->info0)) << 32) | + (((u64)FIELD_GET(BUFFER_ADDR_INFO1_ADDR, binfo->info1)) << 32) | FIELD_GET(BUFFER_ADDR_INFO0_ADDR, binfo->info0); *cookie = FIELD_GET(BUFFER_ADDR_INFO1_SW_COOKIE, binfo->info1); *rbm = FIELD_GET(BUFFER_ADDR_INFO1_RET_BUF_MGR, binfo->info1);
ath11k_hal_rx_buf_addr_info_get() populating the MSB of the dma address from the info0 member, which is invalid. It has to populate the MSB from info1 member. Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org> --- drivers/net/wireless/ath/ath11k/hal_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)