vmware/xorg: Handle no init of video in vmw_video_close
This commit is contained in:
parent
47e128331a
commit
12fdef20b0
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue