summaryrefslogtreecommitdiff
path: root/src/sna/sna_video_overlay.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-06-12 14:20:10 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-06-12 14:20:10 +0100
commit04ea469d4f30f9bb25561f3d04f1463999c8d928 (patch)
tree41a952020c51b37ec479b151ee2b541ee863f457 /src/sna/sna_video_overlay.c
parentdc8f2def5461c75fce6d648036a61186fd00d23f (diff)
sna/video: Catch allocation failure whilst setting up the TexturedAdaptor
Missing NULL check for calloc of the port private array. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video_overlay.c')
-rw-r--r--src/sna/sna_video_overlay.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/sna/sna_video_overlay.c b/src/sna/sna_video_overlay.c
index 5ec9c179..848c471c 100644
--- a/src/sna/sna_video_overlay.c
+++ b/src/sna/sna_video_overlay.c
@@ -737,7 +737,6 @@ void sna_video_overlay_setup(struct sna *sna, ScreenPtr screen)
adaptor->nPorts = 1;
adaptor->pPorts = port;
-
adaptor->base_id = port->id = FakeClientID(0);
AddResource(port->id, XvGetRTPort(), port);