Re: [PATCH] libata: fix using DMA buffers on stack

From: Jens Axboe
Date: Tue Mar 26 2019 - 10:09:18 EST


On 3/25/19 9:07 PM, raymond pang wrote:
> When CONFIG_VMAP_STACK=y, __pa() returns incorrect physical address for
> a stack virtual address. Stack DMA buffers must be avoided.

The patch looks fine, but it's white space mangled so it won't apply.
Additionally, you don't need to use kzfree, just use kfree.

--
Jens Axboe