Skip to content
Commit c2e5f31c authored by raymond pang's avatar raymond pang Committed by Greg Kroah-Hartman
Browse files

libata: fix using DMA buffers on stack



[ Upstream commit dd08a8d9a66de4b54575c294a92630299f7e0fe7 ]

When CONFIG_VMAP_STACK=y, __pa() returns incorrect physical address for
a stack virtual address. Stack DMA buffers must be avoided.

Signed-off-by: default avatarraymond pang <raymondpangxd@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin (Microsoft) <sashal@kernel.org>
parent ef269561
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment