Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 248421 Details for
Bug 336467
x11-drivers/ati-drivers-10.[89]: doesn't compile with 2.6.36-rc3 or 2.6.35-r8
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ati-drivers-compat_alloc_cvs-2010-3081.patch
ati-drivers-compat_alloc_cvs-2010-3081.patch (text/plain), 1.02 KB, created by
Thomas Raschbacher
on 2010-09-23 06:44:18 UTC
(
hide
)
Description:
ati-drivers-compat_alloc_cvs-2010-3081.patch
Filename:
MIME Type:
Creator:
Thomas Raschbacher
Created:
2010-09-23 06:44:18 UTC
Size:
1.02 KB
patch
obsolete
>--- common/lib/modules/fglrx/build_mod/2.6.x/Makefile >+++ common/lib/modules/fglrx/build_mod/2.6.x/Makefile >@@ -67,6 +67,7 @@ EXTRA_CFLAGS += \ > -DFGL_LINUX253P1_VMA_API \ > -DPAGE_ATTR_FIX=$(PAGE_ATTR_FIX) \ > >+ EXTRA_CFLAGS +=-DARCH_COMPAT_ALLOC_USER_SPACE > ifeq ($(KERNELRELEASE),) > # on first call from remote location we get into this path > # whilst on second call all is managed by the embedding kernel makefile >--- common/lib/modules/fglrx/build_mod/kcl_ioctl.c >+++ common/lib/modules/fglrx/build_mod/kcl_ioctl.c >@@ -193,7 +193,19 @@ > */ > void* ATI_API_CALL KCL_IOCTL_AllocUserSpace32(long size) > { >- return compat_alloc_user_space(size); >+ void __user *ptr; >+ >+ /* If len occupies more than half of the entire compat space... */ >+ if (unlikely(((unsigned long) size) > (((compat_uptr_t)~0) >> 1))) >+ return NULL; >+ >+ ptr = arch_compat_alloc_user_space(size); >+ >+ >+ if (unlikely(!access_ok(VERIFY_WRITE, ptr, size))) >+ return NULL; >+ >+ return ptr; > } > > #endif // __x86_64__
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 336467
:
246923
|
246924
|
247851
|
248274
|
248275
|
248277
|
248366
|
248420
| 248421