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

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

Merge "power: smb-lib: fix a mutex deadlock issue"

parents ab013962 4e619b4a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1462,8 +1462,10 @@ int smblib_vbus_regulator_enable(struct regulator_dev *rdev)
	if (!chg->usb_icl_votable) {
		chg->usb_icl_votable = find_votable("USB_ICL");

		if (!chg->usb_icl_votable)
			return -EINVAL;
		if (!chg->usb_icl_votable) {
			rc = -EINVAL;
			goto unlock;
		}
	}
	vote(chg->usb_icl_votable, USBIN_USBIN_BOOST_VOTER, true, 0);