Patch "regulator: core: Ensure we lock all regulators" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
regulator: core: Ensure we lock all regulators
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
regulator-core-ensure-we-lock-all-regulators.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
49a6bb7a1c0963f260e4b0dcc2c0e56ec65a28b2Mon Sep 17 00:00:00 2001
From: Mark Brown <[email protected]>
Date: Tue, 1 Dec 2015 15:51:52 +0000
Subject: regulator: core: Ensure we lock all regulators
From: Mark Brown <[email protected]>
commit 49a6bb7a1c0963f260e4b0dcc2c0e56ec65a28b2 upstream.
The latest workaround for the lockdep interface's not using the second argument of mutex_lock_nested() changed the loop missed locking the last regulator due to a thinko with the loop termination condition exiting one regulator too soon.
--- drivers/regulator/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/regulator/core.c +1 -1
@@ -141,7 +141,7 @@ static void regulator_lock_supply(structint i;mutex_lock (&rdev->mutex); -for (i =1 ; rdev->supply; rdev = rdev->supply->rdev, i++) +for (i =1 ; rdev; rdev = rdev->supply->rdev, i++)mutex_lock_nested (&rdev->mutex, i); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/regulator-core-ensure-we-lock-all-regulators.patch queue-4.4/asoc-ssm4567-reset-device-before-regcache_sync.patch queue-4.4/asoc-dapm-make-sure-we-have-a-card-when-displaying-component-widgets.patch queue-4.4/regulator-core-fix-nested-locking-of-supplies.patch queue-4.4/regulator-core-fix-regulator_lock_supply-regression.patch queue-4.4/asoc-rt5640-correct-the-digital-interface-data-select.patch queue-4.4/asoc-s3c24xx-use-const-snd_soc_component_driver-pointer.patch queue-4.4/revert-regulator-core-fix-nested-locking-of-supplies.patch