mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-09 05:08:04 +02:00
drm: fix the ioctl to not believe userspace.
believing userspace causes oopses
This commit is contained in:
parent
00f549bd5f
commit
8712f0a17b
1 changed files with 2 additions and 0 deletions
|
|
@ -631,6 +631,8 @@ long drm_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|||
goto err_i1;
|
||||
}
|
||||
#endif
|
||||
cmd = ioctl->cmd;
|
||||
|
||||
func = ioctl->func;
|
||||
/* is there a local override? */
|
||||
if ((nr == DRM_IOCTL_NR(DRM_IOCTL_DMA)) && dev->driver->dma_ioctl)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue