mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 16:34:35 +08:00
15 lines
581 B
Diff
15 lines
581 B
Diff
--- 10.10/common/lib/modules/fglrx/build_mod/kcl_ioctl.c.orig 2010-09-22 09:15:33.000000000 +0200
|
|
+++ 10.10/common/lib/modules/fglrx/build_mod/kcl_ioctl.c 2010-10-01 17:57:21.057820899 +0200
|
|
@@ -193,7 +193,11 @@ void ATI_API_CALL KCL_IOCTL_UnregisterCo
|
|
*/
|
|
void* ATI_API_CALL KCL_IOCTL_AllocUserSpace32(long 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))
|