Skip to content

gpu-kms: Protect against NULL crtc->current_mode

Georges Basile Stavracas Neto requested to merge gbsneto/tty-switch-crash into master

When failing to apply the CRTC mode, Mutter throws a warning message. This warning message would try to access the name of the CRTC's current mode.

There are ocasions, however, where the current mode is NULL. On these cases, Mutter would crash.

Fix that by protecting against NULL CRTC modes.

Merge request reports