Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e643ee5a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "regulator: core: Fix nested locking of supplies"

parents d2477562 f6a5df1f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ static void regulator_lock_supply(struct regulator_dev *rdev)
{
	int i;

	for (i = 0; rdev->supply; rdev = rdev_get_supply(rdev), i++)
	for (i = 0; rdev; rdev = rdev_get_supply(rdev), i++)
		mutex_lock_nested(&rdev->mutex, i);
}