Use fixed sized types in new ioctls
Make both crtc and the command argument 32 bits to avoid any 32-on-64 compat issues.main
parent
b45fe49bcd
commit
7f8e406085
|
@ -437,7 +437,7 @@ int drm_modeset_ctl(struct drm_device *dev, void *data,
|
|||
int crtc, ret = 0;
|
||||
u32 new;
|
||||
|
||||
crtc = modeset->arg;
|
||||
crtc = modeset->crtc;
|
||||
if (crtc >= dev->num_crtcs) {
|
||||
ret = -EINVAL;
|
||||
goto out;
|
||||
|
|
|
@ -565,8 +565,8 @@ union drm_wait_vblank {
|
|||
* \sa drmModesetCtl().
|
||||
*/
|
||||
struct drm_modeset_ctl {
|
||||
unsigned long arg;
|
||||
int cmd;
|
||||
uint32_t crtc;
|
||||
uint32_t cmd;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue