]> git.baikalelectronics.ru Git - kernel.git/commit
drm: use drms ioctl cmd not what we get passed from userspace.
authorJohannes Weiner <hannes@saeurebad.de>
Fri, 13 Jun 2008 05:04:40 +0000 (15:04 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Jun 2008 05:04:40 +0000 (15:04 +1000)
commit4d1f69975d2fb0d3afe6112234b170e7a3a2b791
treefeeee7f1004e44e84bb418decc58f41847c938a1
parentb26d1def843214a724af28dac577ebb0adac03aa
drm: use drms ioctl cmd not what we get passed from userspace.

This enforces us to use the drm ioctl types so read/write works correctly and not believe
what userspace tells us.

It does this hopefully without breaking the drm api.

Fixes bug from thread: BUG: unable to handle kernel NULL pointer dereference (drm_getunique)

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/char/drm/drm_drv.c