vmware/xorg: Handle no init of video in vmw_video_close
authorJakob Bornecrantz <jakob@vmware.com>
Fri, 4 Dec 2009 08:40:52 +0000 (09:40 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Fri, 4 Dec 2009 08:54:50 +0000 (09:54 +0100)
src/gallium/winsys/drm/vmware/xorg/vmw_video.c

index 6e34aa21f38c7ee7b47a4b8b520051e7bd942f12..d62c3b7296f46ff66e090f3954f8fadf3f0cdfd2 100644 (file)
@@ -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]);