mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
7bc91ffe41
this uses the patch from https://github.com/manjaro/packages-extra/commit/ddae91f2 to account for https://github.com/torvalds/linux/commit/d4edcf0d and the patch from https://www.virtualbox.org/ticket/15298 to account for https://github.com/torvalds/linux/commit/09cbfeaf
26 lines
1.1 KiB
Diff
26 lines
1.1 KiB
Diff
diff --git a/common/lib/modules/fglrx/build_mod/firegl_public.c b/common/lib/modules/fglrx/build_mod/firegl_public.c
|
|
index 9c70211..b2242af 100755
|
|
--- a/common/lib/modules/fglrx/build_mod/firegl_public.c
|
|
+++ b/common/lib/modules/fglrx/build_mod/firegl_public.c
|
|
@@ -3220,7 +3220,7 @@ int ATI_API_CALL KCL_LockUserPages(unsigned long vaddr, unsigned long* page_list
|
|
int ret;
|
|
|
|
down_read(¤t->mm->mmap_sem);
|
|
- ret = get_user_pages(current, current->mm, vaddr, page_cnt, 1, 0, (struct page **)page_list, NULL);
|
|
+ ret = get_user_pages(vaddr, page_cnt, 1, 0, (struct page **)page_list, NULL);
|
|
up_read(¤t->mm->mmap_sem);
|
|
|
|
return ret;
|
|
@@ -3238,7 +3238,7 @@ int ATI_API_CALL KCL_LockReadOnlyUserPages(unsigned long vaddr, unsigned long* p
|
|
int ret;
|
|
|
|
down_read(¤t->mm->mmap_sem);
|
|
- ret = get_user_pages(current, current->mm, vaddr, page_cnt, 0, 0, (struct page **)page_list, NULL);
|
|
+ ret = get_user_pages(vaddr, page_cnt, 0, 0, (struct page **)page_list, NULL);
|
|
up_read(¤t->mm->mmap_sem);
|
|
|
|
return ret;
|
|
--
|
|
2.9.2
|
|
|