Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57078338 authored by Dave Airlie's avatar Dave Airlie Committed by Daniel Vetter
Browse files

drm: fix drm_drv_uses_atomic_modeset on non modesetting drivers.



vgem seems to oops on the intel CI due to the vgem debugfs init
hitting this path now.

Check if we have mode_config funcs before checking one.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180918062018.24942-1-airlied@gmail.com
parent 3c499ea0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -675,7 +675,7 @@ static inline bool drm_core_check_feature(struct drm_device *dev, int feature)
static inline bool drm_drv_uses_atomic_modeset(struct drm_device *dev)
{
	return drm_core_check_feature(dev, DRIVER_ATOMIC) ||
		dev->mode_config.funcs->atomic_commit != NULL;
		(dev->mode_config.funcs && dev->mode_config.funcs->atomic_commit != NULL);
}