]> www.pilppa.org Git - linux-2.6-omap-h63xx.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)
commit41ee2ff404ec76194315aeed57ac973b010abe1d
treefeeee7f1004e44e84bb418decc58f41847c938a1
parent5dd34572ad9a3be430632dd42e4af2ea370b397b
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