summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2009-12-04 09:40:52 +0100
committerJakob Bornecrantz <jakob@vmware.com>2009-12-04 09:54:50 +0100
commit12fdef20b02595c10cec91aad75abe6ca59f5513 (patch)
tree809630eca0b2449bfad1ca6ca1f98bbf29119dc6
parent47e128331a26fa61506920c48bc82eaf5bd0460a (diff)
vmware/xorg: Handle no init of video in vmw_video_close
-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 6e34aa21f38c..d62c3b7296f4 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]);