Skip to contentSkip to conversation

drm: enforce dumb allocation flags policy

PATCH New Dave Airlie 1 participant 1 message Apr 24, 2013

Subsystems (2)
lore
Share & tools
lore

Dave Airlie

author maintainer
#0 lore raw

PATCH 1/1 drm: enforce dumb allocation flags policy

From: Dave Airlie <[email protected]>

I thought you could be trusted people, looks like I was wrong, no flags for you.

I propose possibly adding a cursor flag here since it might be useful for some people.

---
 drivers/gpu/drm/drm_crtc.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_crtc.c +3 -0
index dd64a06..490d57a 100644
@@ -3829,6 +3829,9 @@ int drm_mode_create_dumb_ioctl(struct drm_device *dev,
 
 	if (!dev->driver->dumb_create)
 		return -ENOSYS;
+	/* kernel doesn't understand any flags yet */
+	if (args->flags)
+		return -EINVAL;
 	return dev->driver->dumb_create(file_priv, dev, args);
 }
 
Signature · 1 line
1.8.1.2