]> err.no Git - linux-2.6/commit
drm: fix a LOR issue on FreeBSD for savage driver
authorDave Airlie <airlied@starflyer.(none)>
Mon, 2 Jan 2006 05:11:44 +0000 (16:11 +1100)
committerDave Airlie <airlied@linux.ie>
Mon, 2 Jan 2006 05:11:44 +0000 (16:11 +1100)
commit3528af1b189d0fbb4c7a3f121f46d9987b9af5b6
tree565940d5d0ac96c063f15cba5a049103e2993466
parent952d751a140e961f7ac67f743cf94d1a37c736e8
drm: fix a LOR issue on FreeBSD for savage driver

Correct a LOR issue on FreeBSD by allocating temporary space and doing a single
DRM_COPY_FROM_USER rather than DRM_VERIFYAREA_READ followed by tons of
DRM_COPY_FROM_USER_UNCHECKED.  I don't like the look of the temporary space
allocation, but I like the simplification in the rest of the file.  Tested
with glxgears, tuxracer, and q3 on a savage4.

From: Eric Anholt <anholt@freebsd.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/savage_drv.h
drivers/char/drm/savage_state.c