projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9de34e2
)
nouveau: fail channel creation if pushbuf init fails
author
Ben Skeggs
<bskeggs@redhat.com>
Thu, 21 Jan 2010 05:17:26 +0000
(15:17 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Thu, 21 Jan 2010 05:18:15 +0000
(15:18 +1000)
nouveau/nouveau_channel.c
patch
|
blob
|
history
diff --git
a/nouveau/nouveau_channel.c
b/nouveau/nouveau_channel.c
index
01d6681
..
5622c1d
100644
(file)
--- a/
nouveau/nouveau_channel.c
+++ b/
nouveau/nouveau_channel.c
@@
-90,7
+90,11
@@
nouveau_channel_alloc(struct nouveau_device *dev, uint32_t fb_ctxdma,
return ret;
}
- nouveau_pushbuf_init(&nvchan->base);
+ ret = nouveau_pushbuf_init(&nvchan->base);
+ if (ret) {
+ nouveau_channel_free((void *)&nvchan);
+ return ret;
+ }
*chan = &nvchan->base;
return 0;