libata: fix using DMA buffers on stack
authorraymond pang <raymondpangxd@gmail.com>
Thu, 28 Mar 2019 12:19:25 +0000 (12:19 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Mar 2019 14:16:04 +0000 (08:16 -0600)
commitdd08a8d9a66de4b54575c294a92630299f7e0fe7
tree502637a64f680e7d726b554e131646f7edb497ed
parent9bf7933fc3f306bc4ce74ad734f690a71670178a
libata: fix using DMA buffers on stack

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

Signed-off-by: raymond pang <raymondpangxd@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/libata-zpodd.c