summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-12-04 09:40:52 +0100
committerJakob Bornecrantz <[email protected]>2009-12-04 09:54:50 +0100
commit12fdef20b02595c10cec91aad75abe6ca59f5513 (patch)
tree809630eca0b2449bfad1ca6ca1f98bbf29119dc6 /src
parent47e128331a26fa61506920c48bc82eaf5bd0460a (diff)
vmware/xorg: Handle no init of video in vmw_video_close
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/drm/vmware/xorg/vmw_video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/vmware/xorg/vmw_video.c b/src/gallium/winsys/drm/vmware/xorg/vmw_video.c
index 6e34aa21f38..d62c3b7296f 100644
--- a/src/gallium/winsys/drm/vmware/xorg/vmw_video.c
+++ b/src/gallium/winsys/drm/vmware/xorg/vmw_video.c
@@ -342,6 +342,8 @@ vmw_video_close(ScrnInfoPtr pScrn, struct vmw_driver *vmw)
debug_printf("%s: enter\n", __func__);
video = vmw->video_priv;
+ if (!video)
+ return TRUE;
for (i = 0; i < VMWARE_VID_NUM_PORTS; ++i) {
vmw_video_port_cleanup(pScrn, &video->port[i]);