[kernel] r18346 - in dists/sid/linux-2.6/debian: . patches/bugfix/all patches/series

Hector Oron zumbi at alioth.debian.org
Sun Dec 4 00:33:58 UTC 2011


Author: zumbi
Date: Sun Dec  4 00:33:57 2011
New Revision: 18346

Log:
Backport fix for nullpointer dereference on regulator core. Thanks Arnaud Patard.

Added:
   dists/sid/linux-2.6/debian/patches/bugfix/all/regulator_enable-nullpointer-dereference.patch
Modified:
   dists/sid/linux-2.6/debian/changelog
   dists/sid/linux-2.6/debian/patches/series/base

Modified: dists/sid/linux-2.6/debian/changelog
==============================================================================
--- dists/sid/linux-2.6/debian/changelog	Sat Dec  3 23:06:58 2011	(r18345)
+++ dists/sid/linux-2.6/debian/changelog	Sun Dec  4 00:33:57 2011	(r18346)
@@ -2,6 +2,9 @@
 
   * Fix generation of revisions for the patch list.
 
+  [ Hector Oron ]
+  * regulator: backport fix for nullpointer dereference in core.
+
  -- Bastian Blank <waldi at debian.org>  Thu, 01 Dec 2011 13:17:34 +0100
 
 linux-2.6 (3.1.4-1) unstable; urgency=low

Added: dists/sid/linux-2.6/debian/patches/bugfix/all/regulator_enable-nullpointer-dereference.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/sid/linux-2.6/debian/patches/bugfix/all/regulator_enable-nullpointer-dereference.patch	Sun Dec  4 00:33:57 2011	(r18346)
@@ -0,0 +1,26 @@
+commit d1685e4e2c3854782272f32b71f2f3eff5c6e0d0
+Author: Heiko Stübner <heiko at sntech.de>
+Date:   Fri Oct 14 18:00:29 2011 +0200
+
+    regulator: Fix possible nullpointer dereference in regulator_enable()
+
+    In the case where _regulator_enable returns an error it was not checked
+    if a supplying regulator exists before trying to disable it, leading
+    to a null pointer-dereference if no supplying regulator existed.
+
+    Signed-off-by: Heiko Stuebner <heiko at sntech.de>
+    Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
+
+Index: source/drivers/regulator/core.c
+===================================================================
+--- source.orig/drivers/regulator/core.c	2011-11-28 22:48:14.000000000 +0000
++++ source/drivers/regulator/core.c	2011-12-03 23:01:59.000000000 +0000
+@@ -1425,7 +1425,7 @@
+ 	ret = _regulator_enable(rdev);
+ 	mutex_unlock(&rdev->mutex);
+ 
+-	if (ret != 0)
++	if (ret != 0 && rdev->supply)
+ 		regulator_disable(rdev->supply);
+ 
+ 	return ret;

Modified: dists/sid/linux-2.6/debian/patches/series/base
==============================================================================
--- dists/sid/linux-2.6/debian/patches/series/base	Sat Dec  3 23:06:58 2011	(r18345)
+++ dists/sid/linux-2.6/debian/patches/series/base	Sun Dec  4 00:33:57 2011	(r18346)
@@ -56,6 +56,7 @@
 + bugfix/all/PM-Freezer-Reimplement-wait_event_freezekillable-usi.patch
 + bugfix/all/hfs-fix-hfs_find_init-sb-ext_tree-NULL-ptr-oops.patch
 + features/x86/x86-Add-amilo-rfkill-driver-for-some-Fujitsu-Siemens.patch
++ bugfix/all/regulator_enable-nullpointer-dereference.patch
 
 # Defer until we're sure about the system call number
 #+ bugfix/ia64/ia64-Add-accept4-syscall.patch



More information about the Kernel-svn-changes mailing list