mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drm/rockchip: gem: Fix memory leak
Fixes: a612c861dd ("drm/rockchip: gem: Convert sg to page")
Change-Id: Ic1042c90827a4478826eaab84bc4799c0f31a789
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
committed by
Huang Jiachai
parent
b02fc6d6ed
commit
9e2373210d
@@ -695,6 +695,7 @@ void rockchip_gem_free_object(struct drm_gem_object *obj)
|
||||
dma_unmap_sg(drm->dev, rk_obj->sgt->sgl,
|
||||
rk_obj->sgt->nents, DMA_BIDIRECTIONAL);
|
||||
}
|
||||
drm_free_large(rk_obj->pages);
|
||||
#ifndef CONFIG_ARCH_ROCKCHIP
|
||||
drm_prime_gem_destroy(obj, rk_obj->sgt);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user