projects
/
platform
/
upstream
/
xf86-video-intel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb87b17
)
sna: Allow allocation to fail even when debugging
author
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 21 Feb 2014 21:48:36 +0000
(21:48 +0000)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 21 Feb 2014 21:48:36 +0000
(21:48 +0000)
Let the malloc failure propagate rather than assert.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_accel.c
patch
|
blob
|
history
diff --git
a/src/sna/sna_accel.c
b/src/sna/sna_accel.c
index
d79eb8a
..
6d97814
100644
(file)
--- a/
src/sna/sna_accel.c
+++ b/
src/sna/sna_accel.c
@@
-516,7
+516,6
@@
sna_pixmap_alloc_cpu(struct sna *sna,
priv->ptr = malloc(priv->stride * pixmap->drawable.height);
}
- assert(priv->ptr);
done:
assert(priv->stride);
assert(!priv->mapped);