Skip to content

Commit 7e1b512

Browse files
committed
phy: apple: atc: Add missing mutex_unlock in error case
Reported-by: kernel test robot <[email protected]> Reported-by: Julia Lawall <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Janne Grunau <[email protected]>
1 parent 8adfec7 commit 7e1b512

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)