Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322377
b: refs/heads/master
c: 7c4eaca
h: refs/heads/master
i:
  322375: 16bf3fd
v: v3
  • Loading branch information
Jakob Bornecrantz authored and Dave Airlie committed Aug 23, 2012
1 parent 8c78655 commit 87ddf2d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22f5d115a2b087c977128f84ee557ad71530330e
refs/heads/master: 7c4eaca4162d0b5ad4fb39f974d7ffd71b9daa09
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/drm_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,7 @@ int drm_mode_cursor_ioctl(struct drm_device *dev,
if (!drm_core_check_feature(dev, DRIVER_MODESET))
return -EINVAL;

if (!req->flags)
if (!req->flags || (~DRM_MODE_CURSOR_FLAGS & req->flags))
return -EINVAL;

mutex_lock(&dev->mode_config.mutex);
Expand Down
5 changes: 3 additions & 2 deletions trunk/include/drm/drm_mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 87ddf2d

Please sign in to comment.