summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-07-22 17:33:25 +0300
committerAlon Levy <alevy@redhat.com>2012-10-23 18:46:58 +0200
commit07600804de9208ec5186e2b306f569a74678cff7 (patch)
treed6e79a12faca29f9a9e8faf671e739ac14149e5a
parent317ce6746c0ff9e8ebe442772715dd6fabe1b367 (diff)
qxl_surface/qxl_surface_cache_create_primary: warn on allocation failure
-rw-r--r--src/qxl_surface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index 8f0d227..298195a 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -396,8 +396,11 @@ qxl_surface_cache_create_primary (surface_cache_t *cache,
if (qxl->fb != NULL)
free(qxl->fb);
qxl->fb = calloc (qxl->virtual_x * qxl->virtual_y, 4);
- if (!qxl->fb)
+ if (!qxl->fb) {
+ xf86DrvMsg(cache->qxl->pScrn->scrnIndex, X_ERROR,
+ "Allocation failure of shadow primary\n");
return NULL;
+ }
host_image = pixman_image_create_bits (format,
qxl->virtual_x, qxl->virtual_y,