From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:51029 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754511AbcEBSWQ (ORCPT ); Mon, 2 May 2016 14:22:16 -0400 Subject: Patch "regulator: core: Ensure we lock all regulators" has been added to the 4.4-stable tree To: broonie@kernel.org, gregkh@linuxfoundation.org, linux@roeck-us.net, tyler.baker@linaro.org Cc: , From: Date: Mon, 02 May 2016 11:22:14 -0700 Message-ID: <1462213334126101@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: 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 know about it. >>From 49a6bb7a1c0963f260e4b0dcc2c0e56ec65a28b2 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Tue, 1 Dec 2015 15:51:52 +0000 Subject: regulator: core: Ensure we lock all regulators From: Mark Brown 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. Reported-by: Tyler Baker Signed-off-by: Mark Brown Cc: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- drivers/regulator/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -141,7 +141,7 @@ static void regulator_lock_supply(struct int 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 broonie@kernel.org 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