sna/blt: Add a missing allocation check upon the source CPU pixmap
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
5b0f3ff9a8
commit
23fb2cebbe
|
|
@ -1140,6 +1140,9 @@ prepare_blt_put(struct sna *sna,
|
|||
GXcopy))
|
||||
return FALSE;
|
||||
} else {
|
||||
if (!sna_pixmap_move_to_cpu(src, false))
|
||||
return FALSE;
|
||||
|
||||
op->blt = blt_put_composite;
|
||||
op->box = blt_put_composite_box;
|
||||
op->boxes = blt_put_composite_boxes;
|
||||
|
|
|
|||
Loading…
Reference in New Issue