mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-07 20:09:05 +00:00
sh: pfc: Release spinlock in sh_pfc_gpio_request_enable() error path
The sh_pfc_gpio_request_enable() function acquires a spinlock but fails to release it before returning if the requested mux type is not supported. Fix this. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
d4b7c5db42
commit
077664a264
@ -211,7 +211,8 @@ static int sh_pfc_gpio_request_enable(struct pinctrl_dev *pctldev,
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
pr_err("Unsupported mux type (%d), bailing...\n", pinmux_type);
|
pr_err("Unsupported mux type (%d), bailing...\n", pinmux_type);
|
||||||
return -ENOTSUPP;
|
ret = -ENOTSUPP;
|
||||||
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user