]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: use the same attributes when freeing d_page->vaddr
authorFuqian Huang <huangfq.daxian@gmail.com>
Thu, 11 Jul 2019 03:10:21 +0000 (11:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:17:18 +0000 (14:17 -0500)
commitfed0c40627c7ce554839cb47a04b3e8ec561b46c
tree1abfde610aeb7179ac8c74f53969174285bc4776
parent9a7497f0ca8476ecfe4367256db41bb77431683d
drm/ttm: use the same attributes when freeing d_page->vaddr

In function __ttm_dma_alloc_page(), d_page->addr is allocated
by dma_alloc_attrs() but freed with use dma_free_coherent() in
__ttm_dma_free_page().
Use the correct dma_free_attrs() to free d_page->vaddr.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c