diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-08-27 07:04:41 +0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-09-24 10:18:31 +0400 |
commit | 9d59e8a1fc8fc35bf22dc92d7722a7502769ab7e (patch) | |
tree | 404d4103b46bd4fcfef34541908cfd0af0db45bd /drivers/gpu/drm/nouveau/nv50_crtc.c | |
parent | e694438d2f55d71da3491b1a2472383cec4b8236 (diff) | |
download | linux-9d59e8a1fc8fc35bf22dc92d7722a7502769ab7e.tar.xz |
drm/nouveau: require explicit unmap of kmapped bos
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_crtc.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_crtc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_crtc.c b/drivers/gpu/drm/nouveau/nv50_crtc.c index bfd4ca2fe7ef..d819eb935a2f 100644 --- a/drivers/gpu/drm/nouveau/nv50_crtc.c +++ b/drivers/gpu/drm/nouveau/nv50_crtc.c @@ -338,7 +338,9 @@ nv50_crtc_destroy(struct drm_crtc *crtc) nv50_cursor_fini(nv_crtc); + nouveau_bo_unmap(nv_crtc->lut.nvbo); nouveau_bo_ref(NULL, &nv_crtc->lut.nvbo); + nouveau_bo_unmap(nv_crtc->cursor.nvbo); nouveau_bo_ref(NULL, &nv_crtc->cursor.nvbo); kfree(nv_crtc->mode); kfree(nv_crtc); |