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)
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>

No differences found