packages: kernel/kernel-grsec_fixes.patch - atomic open_count fixes

arekm arekm at pld-linux.org
Tue Jul 6 14:01:44 CEST 2010


Author: arekm                        Date: Tue Jul  6 12:01:44 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- atomic open_count fixes

---- Files affected:
packages/kernel:
   kernel-grsec_fixes.patch (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/kernel/kernel-grsec_fixes.patch
diff -u packages/kernel/kernel-grsec_fixes.patch:1.7 packages/kernel/kernel-grsec_fixes.patch:1.8
--- packages/kernel/kernel-grsec_fixes.patch:1.7	Tue Feb  2 13:58:20 2010
+++ packages/kernel/kernel-grsec_fixes.patch	Tue Jul  6 14:01:36 2010
@@ -150,3 +150,25 @@
  	bool "Enable /proc page monitoring" if EMBEDDED
   	help
  	  Various /proc files exist to monitor process memory utilization:
+--- linux-2.6.34/drivers/gpu/drm/i915/i915_dma.c~	2010-05-16 23:17:36.000000000 +0200
++++ linux-2.6.34/drivers/gpu/drm/i915/i915_dma.c	2010-07-06 13:27:42.295120649 +0200
+@@ -1416,7 +1416,7 @@
+ 	bool can_switch;
+ 
+ 	spin_lock(&dev->count_lock);
+-	can_switch = (dev->open_count == 0);
++	can_switch = (atomic_read(&dev->open_count) == 0);
+ 	spin_unlock(&dev->count_lock);
+ 	return can_switch;
+ }
+--- linux-2.6.34/drivers/gpu/drm/nouveau/nouveau_state.c~	2010-05-16 23:17:36.000000000 +0200
++++ linux-2.6.34/drivers/gpu/drm/nouveau/nouveau_state.c	2010-07-06 13:38:37.321928956 +0200
+@@ -391,7 +391,7 @@
+ 	bool can_switch;
+ 
+ 	spin_lock(&dev->count_lock);
+-	can_switch = (dev->open_count == 0);
++	can_switch = (atomic_read(&dev->open_count) == 0);
+ 	spin_unlock(&dev->count_lock);
+ 	return can_switch;
+ }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel-grsec_fixes.patch?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list