summary refs log tree commit diff
path: root/pkgs/os-specific/linux/ati-drivers/patches/kernel-4.6-page_cache_release-put_page.patch
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-09-17 01:24:34 +0200
committerVladimír Čunát <vcunat@gmail.com>2016-09-17 01:29:27 +0200
commit12a45a8496b950f7bb289cbdf7245f452a8908a7 (patch)
tree7c15b12ee56dae64deff635a97d9bacf058c4686 /pkgs/os-specific/linux/ati-drivers/patches/kernel-4.6-page_cache_release-put_page.patch
parent5ade8fff793908dbfed7c4b4f5ae904ae6326bfc (diff)
parent7bc91ffe41d6c4adaa2a778dcf1526caa0f8677b (diff)
downloadnixpkgs-12a45a8496b950f7bb289cbdf7245f452a8908a7.tar
nixpkgs-12a45a8496b950f7bb289cbdf7245f452a8908a7.tar.gz
nixpkgs-12a45a8496b950f7bb289cbdf7245f452a8908a7.tar.bz2
nixpkgs-12a45a8496b950f7bb289cbdf7245f452a8908a7.tar.lz
nixpkgs-12a45a8496b950f7bb289cbdf7245f452a8908a7.tar.xz
nixpkgs-12a45a8496b950f7bb289cbdf7245f452a8908a7.tar.zst
nixpkgs-12a45a8496b950f7bb289cbdf7245f452a8908a7.zip
Merge #18237: ati_drivers_x11: patch for kernel 4.6
Diffstat (limited to 'pkgs/os-specific/linux/ati-drivers/patches/kernel-4.6-page_cache_release-put_page.patch')
-rw-r--r--pkgs/os-specific/linux/ati-drivers/patches/kernel-4.6-page_cache_release-put_page.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/ati-drivers/patches/kernel-4.6-page_cache_release-put_page.patch b/pkgs/os-specific/linux/ati-drivers/patches/kernel-4.6-page_cache_release-put_page.patch
new file mode 100644
index 00000000000..28820790e49
--- /dev/null
+++ b/pkgs/os-specific/linux/ati-drivers/patches/kernel-4.6-page_cache_release-put_page.patch
@@ -0,0 +1,16 @@
+diff --git a/common/lib/modules/fglrx/build_mod/firegl_public.c b/common/lib/modules/fglrx/build_mod/firegl_public.c
+index b2242af..586129c 100755
+--- a/common/lib/modules/fglrx/build_mod/firegl_public.c
++++ b/common/lib/modules/fglrx/build_mod/firegl_public.c
+@@ -3249,7 +3249,7 @@ void ATI_API_CALL KCL_UnlockUserPages(unsigned long* page_list, unsigned int pag
+     unsigned int i;
+     for (i=0; i<page_cnt; i++)
+     {
+-        page_cache_release((struct page*)page_list[i]);
++        put_page((struct page*)page_list[i]);
+     }
+ }
+ 
+-- 
+2.9.2
+