diff options
author | Ajay.Kathat@microchip.com <Ajay.Kathat@microchip.com> | 2022-08-09 10:57:56 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-08-30 19:36:29 +0300 |
commit | 40b717bfcefab28a0656b8caa5e43d5449e5a671 (patch) | |
tree | 48b5f6be6f8324adea5170001a0b1f1449fd7b23 /drivers/net/wireless/microchip/wilc1000/netdev.h | |
parent | fa3fbe64037839f448dc569212bafc5a495d8219 (diff) | |
download | linux-40b717bfcefab28a0656b8caa5e43d5449e5a671.tar.xz |
wifi: wilc1000: fix DMA on stack objects
Sometimes 'wilc_sdio_cmd53' is called with addresses pointing to an
object on the stack. Use dynamically allocated memory for cmd53 instead
of stack address which is not DMA'able.
Fixes: 5625f965d764 ("wilc1000: move wilc driver out of staging")
Reported-by: Michael Walle <mwalle@kernel.org>
Suggested-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Michael Walle <mwalle@kernel.org>
Tested-by: Michael Walle <mwalle@kernel.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220809075749.62752-1-ajay.kathat@microchip.com
Diffstat (limited to 'drivers/net/wireless/microchip/wilc1000/netdev.h')
-rw-r--r-- | drivers/net/wireless/microchip/wilc1000/netdev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/microchip/wilc1000/netdev.h b/drivers/net/wireless/microchip/wilc1000/netdev.h index 43c085c74b7a..bb1a315a7b7e 100644 --- a/drivers/net/wireless/microchip/wilc1000/netdev.h +++ b/drivers/net/wireless/microchip/wilc1000/netdev.h @@ -245,6 +245,7 @@ struct wilc { u8 *rx_buffer; u32 rx_buffer_offset; u8 *tx_buffer; + u32 *vmm_table; struct txq_handle txq[NQUEUES]; int txq_entries; |