drm: fix missing return statement in nouveau_ttm_tt_unpopulate
PATCH 1/1 drm: fix missing return statement in nouveau_ttm_tt_unpopulate
nouveau_ttm_tt_unpopulate() is supposed to return right after calling ttm_dma_unpopulate() in the case of a coherent buffer. The return statement was omitted, leading to the pages being unmapped twice. Fix this.
Signed-off-by Alexandre Courbot <[email protected]>
--- drm/nouveau_bo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drm/nouveau_bo.c +3 -1
@@ -1573,8 +1573,10 @@ nouveau_ttm_tt_unpopulate(struct ttm_tt *ttm)* so use the DMA API for them. */ if (!nv_device_is_cpu_coherent (device) && - ttm->caching_state == tt_uncached) + ttm->caching_state == tt_uncached) {ttm_dma_unpopulate (ttm_dma, dev->dev); +return ; + }#if __OS_HAS_AGPif (drm->agp.stat ==ENABLED ) {
Signature · 6 lines
2.1.3 _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau