diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-16 20:54:40 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-16 20:54:53 +0100 |
commit | c289b607d1526d8d3625fa84c093552a9f3ea168 (patch) | |
tree | 6b1ce27624000e29613eeebc057a0991ad9bb3ef | |
parent | 32ec8b979bc8cf7d8ce351ca752b806d42bc1c0f (diff) |
uxa: Check for failed mmapping of the scanout
Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/intel_uxa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel_uxa.c b/src/intel_uxa.c index 5aad062c..3745ff0f 100644 --- a/src/intel_uxa.c +++ b/src/intel_uxa.c @@ -1145,7 +1145,8 @@ Bool intel_uxa_create_screen_resources(ScreenPtr screen) if (!uxa_resources_init(screen)) return FALSE; - drm_intel_gem_bo_map_gtt(bo); + if (drm_intel_gem_bo_map_gtt(bo)) + return FALSE; pixmap = screen->GetScreenPixmap(screen); intel_set_pixmap_bo(pixmap, bo); |