drm/nouveau: fix missing return statement in nouveau_ttm_tt_unpopulate
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 10 Dec 2014 18:09:10 +0000 (03:09 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Sun, 21 Dec 2014 22:37:37 +0000 (08:37 +1000)
commitdcccdc143ffa832674a81070cfe4c9a7eb6c8aa1
tree945b73c555ed11d74859b8b065a476c120e45ab0
parentc7e873f85fb60b1af589ac1b0c62353cfe0bbb29
drm/nouveau: 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 <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c