[3/3] fixup
diff mbox series

Message ID 20190903190545.31852-3-daniel.vetter@ffwll.ch
State New
Headers show
Series
  • [1/3] drm/atomic: Reject FLIP_ASYNC unconditionally
Related show

Commit Message

Daniel Vetter Sept. 3, 2019, 7:05 p.m. UTC
---
 drivers/gpu/drm/drm_ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c
index 3c015dd3c94b..1cb7b4c3c87c 100644
--- a/drivers/gpu/drm/drm_ioctl.c
+++ b/drivers/gpu/drm/drm_ioctl.c
@@ -335,7 +335,7 @@  drm_setclientcap(struct drm_device *dev, void *data, struct drm_file *file_priv)
 		break;
 	case DRM_CLIENT_CAP_ATOMIC:
 		/* The modesetting DDX has a totally broken idea of atomic. */
-		if (strstr("X", current->comm))
+		if (strstr(current->comm, "X"))
 			return -EOPNOTSUPP;
 		if (!drm_core_check_feature(dev, DRIVER_ATOMIC))
 			return -EOPNOTSUPP;