commit | 1c34d824bd750f4a4287639fee8335ec51530024 | [log] [tgz] |
---|---|---|
author | Alexandre Courbot <acourbot@nvidia.com> | Fri May 15 16:09:54 2015 +0900 |
committer | Dave Airlie <airlied@redhat.com> | Tue Jun 02 17:24:49 2015 +1000 |
tree | 285da60c759743991f5727d8e1a4fd4754482111 | |
parent | 95872b49ce14169a1ce0dfaac62e284cbdc6eea8 [diff] |
drm/ttm: dma: Don't crash on memory in the vmalloc range dma_alloc_coherent() can return memory in the vmalloc range. virt_to_page() cannot handle such addresses and crashes. This patch detects such cases and obtains the struct page * using vmalloc_to_page() instead. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Dave Airlie <airlied@redhat.com>