dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: enforce dumb allocation flags policy
@ 2013-04-24  0:41 Dave Airlie
  0 siblings, 0 replies; only message in thread
From: Dave Airlie @ 2013-04-24  0:41 UTC (permalink / raw)
  To: dri-devel

From: Dave Airlie <airlied@redhat.com>

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.

Signed-off-by: Dave Airlie <airlied@redhat.com>
---
 drivers/gpu/drm/drm_crtc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index dd64a06..490d57a 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -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);
 }
 
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-24  0:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24  0:41 [PATCH] drm: enforce dumb allocation flags policy Dave Airlie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox