0 Replies Latest reply on Sep 2, 2014 6:04 PM by szukw000

    linux-amd-catalyst-14.6-beta-v1.0-jul11.zip

    szukw000

      I had downloaded

       

      linux-amd-catalyst-14.6-beta-v1.0-jul11.zip

       

      This software is broken. A patch is attached.

       

      After debugging and installing it I was unable to call

      'startx'.

       

      The uninstall script did not uninstall everything.

       

      I am cured.

       

      winfried

       

      --- fglrx/build_mod/kcl_ioctl.c.orig2014-09-02 10:43:25.180801589 +0000

      +++ fglrx/build_mod/kcl_ioctl.c 2014-09-02 11:08:15.598932274 +0000

      @@ -31,6 +31,7 @@

        */

       

      #include <linux/version.h>

      +#include <linux/compat.h>

      #include <asm/uaccess.h>

       

      #ifdef __x86_64__

      @@ -222,7 +223,12 @@

        */

      void* ATI_API_CALL KCL_IOCTL_AllocUserSpace32(long size)

      {

      -void __user *ret = COMPAT_ALLOC_USER_SPACE(size);

      +//GPL, not allowed: void __user *ret = compat_alloc_user_space(size);

      +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)

      +   void __user *ret = arch_compat_alloc_user_space(size);

      +#else

      +   void __user *ret = COMPAT_ALLOC_USER_SPACE(size);

      +#endif

       

      /* prevent stack overflow */
      if (!access_ok(VERIFY_WRITE, ret, size))
      --- fglrx/build_mod/firegl_public.c.orig2014-09-02 10:15:30.940654786 +0000

      +++ fglrx/build_mod/firegl_public.c 2014-09-02 10:33:45.705750778 +0000

      @@ -1784,7 +1784,7 @@

      #else

       

      #ifdef current_euid

      -return current_euid();
      +return __kuid_val(current_euid());

      #else

      return current->euid;

      #endif