summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2012-08-16 08:29:03 +0000
committerDave Airlie <airlied@redhat.com>2012-08-24 09:38:40 +1000
commit7c4eaca4162d0b5ad4fb39f974d7ffd71b9daa09 (patch)
tree1b1851a45b209cdc24489866326bc987c0c22315 /include/drm
parent22f5d115a2b087c977128f84ee557ad71530330e (diff)
downloadlinux-3.10-7c4eaca4162d0b5ad4fb39f974d7ffd71b9daa09.tar.gz
linux-3.10-7c4eaca4162d0b5ad4fb39f974d7ffd71b9daa09.tar.bz2
linux-3.10-7c4eaca4162d0b5ad4fb39f974d7ffd71b9daa09.zip
drm: Check for invalid cursor flags
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Cc: stable@vger.kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-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 5581980b14f..3d6301b6ec1 100644
--- a/include/drm/drm_mode.h
+++ b/include/drm/drm_mode.h
@@ -359,8 +359,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.