Author: leigh123linux
Update of /cvs/nonfree/rpms/nvidia-173xx-kmod/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv17408
Modified Files:
3.7_kernel.patch
Log Message:
fix patch
3.7_kernel.patch:
conftest.sh | 7 ++++++-
nv.c | 4 ++++
2 files changed, 10 insertions(+), 1 deletion(-)
Index: 3.7_kernel.patch
===================================================================
RCS file: /cvs/nonfree/rpms/nvidia-173xx-kmod/devel/3.7_kernel.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- 3.7_kernel.patch 16 Nov 2012 15:46:07 -0000 1.1
+++ 3.7_kernel.patch 16 Nov 2012 16:10:33 -0000 1.2
@@ -30,3 +30,17 @@
fi
if [ -n "$BUILD_PARAMS" ]; then
CFLAGS="$CFLAGS -D$BUILD_PARAMS"
+--- a/usr/src/nv/nv.c
++++ b/usr/src/nv/nv.c
+@@ -2609,7 +2609,11 @@ int nv_kern_mmap(
+
+ /* prevent the swapper from swapping it out */
+ /* mark the memory i/o so the buffers aren't dumped on core dumps */
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
++ vma->vm_flags |= (VM_IO | VM_LOCKED | (VM_DONTEXPAND | VM_DONTDUMP));
++#else
+ vma->vm_flags |= (VM_IO | VM_LOCKED | VM_RESERVED);
++#endif
+ }
+
+ NV_VMA_FILE(vma) = file;