summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2012-08-16 08:29:03 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-02 10:30:23 -0700
commit2607b9407db4cbc16d5a130c8c16702711c3b7be (patch)
tree396f6488dd277120460e0c4cd098a1a9e36b47f6 /include
parent4368ade3ff2bfff1033f9e5758630b3d4e8f7e71 (diff)
downloadlinux-3.10-2607b9407db4cbc16d5a130c8c16702711c3b7be.tar.gz
linux-3.10-2607b9407db4cbc16d5a130c8c16702711c3b7be.tar.bz2
linux-3.10-2607b9407db4cbc16d5a130c8c16702711c3b7be.zip
drm: Check for invalid cursor flags
commit 7c4eaca4162d0b5ad4fb39f974d7ffd71b9daa09 upstream. Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_mode.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h
index 4a0aae38e16..9242310b47c 100644
--- a/include/drm/drm_mode.h
+++ b/include/drm/drm_mode.h
@@ -343,8 +343,9 @@ struct drm_mode_mode_cmd {
struct drm_mode_modeinfo mode;
};
-#define DRM_MODE_CURSOR_BO (1<<0)
-#define DRM_MODE_CURSOR_MOVE (1<<1)
+#define DRM_MODE_CURSOR_BO 0x01
+#define DRM_MODE_CURSOR_MOVE 0x02
+#define DRM_MODE_CURSOR_FLAGS 0x03
/*
* depending on the value in flags different members are used.