Line
Link Here
|
0 |
-- common/lib/modules/fglrx/build_mod/2.6.x/Makefile |
0 |
++ common/lib/modules/fglrx/build_mod/2.6.x/Makefile |
Lines 67-72
EXTRA_CFLAGS += \
Link Here
|
67 |
-DFGL_LINUX253P1_VMA_API \ |
67 |
-DFGL_LINUX253P1_VMA_API \ |
68 |
-DPAGE_ATTR_FIX=$(PAGE_ATTR_FIX) \ |
68 |
-DPAGE_ATTR_FIX=$(PAGE_ATTR_FIX) \ |
69 |
|
69 |
|
|
|
70 |
EXTRA_CFLAGS +=-DARCH_COMPAT_ALLOC_USER_SPACE |
70 |
ifeq ($(KERNELRELEASE),) |
71 |
ifeq ($(KERNELRELEASE),) |
71 |
# on first call from remote location we get into this path |
72 |
# on first call from remote location we get into this path |
72 |
# whilst on second call all is managed by the embedding kernel makefile |
73 |
# whilst on second call all is managed by the embedding kernel makefile |
73 |
-- common/lib/modules/fglrx/build_mod/kcl_ioctl.c |
74 |
++ common/lib/modules/fglrx/build_mod/kcl_ioctl.c |
Lines 193-199
Link Here
|
193 |
*/ |
193 |
*/ |
194 |
void* ATI_API_CALL KCL_IOCTL_AllocUserSpace32(long size) |
194 |
void* ATI_API_CALL KCL_IOCTL_AllocUserSpace32(long size) |
195 |
{ |
195 |
{ |
196 |
return compat_alloc_user_space(size); |
196 |
void __user *ptr; |
|
|
197 |
|
198 |
/* If len occupies more than half of the entire compat space... */ |
199 |
if (unlikely(((unsigned long) size) > (((compat_uptr_t)~0) >> 1))) |
200 |
return NULL; |
201 |
|
202 |
ptr = arch_compat_alloc_user_space(size); |
203 |
|
204 |
|
205 |
if (unlikely(!access_ok(VERIFY_WRITE, ptr, size))) |
206 |
return NULL; |
207 |
|
208 |
return ptr; |
197 |
} |
209 |
} |
198 |
|
210 |
|
199 |
#endif // __x86_64__ |
211 |
#endif // __x86_64__ |