sna: Check for failure to pin the front buffer
Reported-by: Zdenek Kabelac <zkabelac@redhat.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
c9db2c74ab
commit
5675c36e0d
|
|
@ -964,6 +964,9 @@ static struct kgem_bo *sna_crtc_attach(xf86CrtcPtr crtc)
|
|||
DBG(("%s: attaching to framebuffer\n", __FUNCTION__));
|
||||
sna_crtc_disable_shadow(sna, sna_crtc);
|
||||
bo = sna_pixmap_pin(sna->front);
|
||||
if (bo == NULL)
|
||||
return NULL;
|
||||
|
||||
if (!get_fb(sna, bo, scrn->virtualX, scrn->virtualY))
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue