OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f69e76
)
drm/nouveau: unpin pushbuffer bo before destroying it
author
Marcin Slusarz
<marcin.slusarz@gmail.com>
Sun, 25 Nov 2012 22:02:28 +0000
(23:02 +0100)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 28 Nov 2012 23:58:11 +0000
(09:58 +1000)
Fixes GART leak (as accounted by nouveau_drm.gem.gart_available).
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_chan.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_chan.c
b/drivers/gpu/drm/nouveau/nouveau_chan.c
index
1363578
..
174300b
100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_chan.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_chan.c
@@
-76,6
+76,8
@@
nouveau_channel_del(struct nouveau_channel **pchan)
nouveau_object_del(client, NVDRM_DEVICE, chan->push.handle);
nouveau_bo_vma_del(chan->push.buffer, &chan->push.vma);
nouveau_bo_unmap(chan->push.buffer);
+ if (chan->push.buffer && chan->push.buffer->pin_refcnt)
+ nouveau_bo_unpin(chan->push.buffer);
nouveau_bo_ref(NULL, &chan->push.buffer);
kfree(chan);
}