Skip to content

Commit 38baa13

Browse files
committed
phy: apple: atc: Add missing mutex_unlock in error case
Reported-by: kernel test robot <lkp@intel.com> Reported-by: Julia Lawall <julia.lawall@inria.fr> Closes: https://lore.kernel.org/r/202410021851.sGmBSrDd-lkp@intel.com/ Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 819ac8e commit 38baa13

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/phy/apple/atc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,7 @@ static int atcphy_usb3_power_on(struct phy *phy)
16241624

16251625
if (atcphy->mode != atcphy->target_mode) {
16261626
dev_err(atcphy->dev, "ATCPHY did not come up; won't allow dwc3 to come up.\n");
1627+
mutex_unlock(&atcphy->lock);
16271628
return -EINVAL;
16281629
}
16291630

0 commit comments

Comments
 (0)