• Dave Airlie's avatar
    drm: fix a LOR issue on FreeBSD for savage driver · 3528af1b
    Dave Airlie authored
    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: default avatarDave Airlie <airlied@linux.ie>
    3528af1b
savage_drv.h 19.1 KB