From: Paweł Sikora Date: Sat, 5 Nov 2005 21:22:04 +0000 (+0000) Subject: - outdated part removed. X-Git-Tag: auto/ac/X11-driver-firegl-8_20_8-1~12 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=ec7f3e8c9f48d79d5f79084f1eb9136b24bdbb64;p=packages%2FX11-driver-firegl.git - outdated part removed. - check access_ok() retval in the right way. Changed files: X11-driver-firegl-ioctl32.patch -> 1.3 --- diff --git a/X11-driver-firegl-ioctl32.patch b/X11-driver-firegl-ioctl32.patch index 0a5cb99..bd9a0c2 100644 --- a/X11-driver-firegl-ioctl32.patch +++ b/X11-driver-firegl-ioctl32.patch @@ -2,17 +2,6 @@ http://ati.cchtml.com/show_bug.cgi?id=211 --- X11-driver-firegl-8.16.20/lib/modules/fglrx/build_mod/firegl_public.c.orig 2005-11-02 20:29:43.535048712 -0800 +++ X11-driver-firegl-8.16.20/lib/modules/fglrx/build_mod/firegl_public.c 2005-11-02 20:27:19.013019400 -0800 -@@ -121,9 +121,8 @@ - #endif - - #ifdef __x86_64__ -+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,12) - #include "asm/ioctl32.h" --#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,2) --#include "linux/syscalls.h" - #endif - #endif - @@ -191,6 +190,16 @@ _syscall3( int, modify_ldt, int, func, v // ============================================================ /* globals */ @@ -43,7 +32,7 @@ http://ati.cchtml.com/show_bug.cgi?id=211 int ATI_API_CALL __ke_verify_area(int type, const void * addr, unsigned long size) { - return verify_area(type, addr, size); -+ return access_ok(type, addr, size); ++ return (access_ok(type, addr, size) ? 0 : -EFAULT); } int ATI_API_CALL __ke_get_pci_device_info(__ke_pci_dev_t* dev, __ke_pci_device_info_t *pinfo)