Commit 673ba5a0 authored by Wei Yongjun's avatar Wei Yongjun Committed by Linus Walleij
Browse files

pinctrl: single: Fix missing unlock on error path



Add the missing unlock before return from function
in the error handling case.

Fixes: 0f5972033509 ("pinctrl: single: Fix group and function selector use")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 93639058
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1071,8 +1071,8 @@ free_pingroups:
	*num_maps = 1;
free_function:
	pinmux_generic_remove_function(pcs->pctl, fsel);
	mutex_unlock(&pcs->mutex);
free_pins:
	mutex_unlock(&pcs->mutex);
	devm_kfree(pcs->dev, pins);

free_vals:
@@ -1211,8 +1211,8 @@ free_pingroups:
	*num_maps = 1;
free_function:
	pinmux_generic_remove_function(pcs->pctl, fsel);
	mutex_unlock(&pcs->mutex);
free_pins:
	mutex_unlock(&pcs->mutex);
	devm_kfree(pcs->dev, pins);

free_vals: