Skip to content
Commit 5212d958 authored by Ajay.Kathat@microchip.com's avatar Ajay.Kathat@microchip.com Committed by Greg Kroah-Hartman
Browse files

wifi: wilc1000: fix DMA on stack objects

[ Upstream commit 40b717bf ]

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: 5625f965

 ("wilc1000: move wilc driver out of staging")
Reported-by: default avatarMichael Walle <mwalle@kernel.org>
Suggested-by: default avatarMichael Walle <mwalle@kernel.org>
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Reviewed-by: default avatarMichael Walle <mwalle@kernel.org>
Tested-by: default avatarMichael Walle <mwalle@kernel.org>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220809075749.62752-1-ajay.kathat@microchip.com
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 374b04cb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment