commit | 16aaa6acabe4f37e909c4f24f0df32f609d1dad9 | [log] [tgz] |
---|---|---|
author | Andy Lutomirski <luto@kernel.org> | Tue Jun 21 16:44:42 2016 -0700 |
committer | Andy Lutomirski <luto@kernel.org> | Tue Jun 21 17:32:07 2016 -0700 |
tree | 95d5e19792ce6f6a1466c98f61091e0bbfb802d4 | |
parent | 44c462cf284de6d9200d61b572bed5bcc92b5029 [diff] |
dma-api: Teach the "DMA-from-stack" check about vmapped stacks If we're using CONFIG_VMAP_STACK and we manage to point an sg entry at the stack, then either the sg page will be in highmem or sg_virt will return the direct-map alias. In neither case will the existing check_for_stack() implementation realize that it's a stack page. Fix it by explicitly checking for stack pages. Signed-off-by: Andy Lutomirski <luto@kernel.org>