mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 13:33:30 -04:00
pinctrl: aw9523: add missing mutex_destroy
Otherwise the mutex remains after a failed kzalloc. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://lore.kernel.org/20241001212724.309320-1-rosenp@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
committed by
Linus Walleij
parent
58414a31c5
commit
be86c55354
@@ -980,8 +980,10 @@ static int aw9523_probe(struct i2c_client *client)
|
||||
lockdep_set_subclass(&awi->i2c_lock, i2c_adapter_depth(client->adapter));
|
||||
|
||||
pdesc = devm_kzalloc(dev, sizeof(*pdesc), GFP_KERNEL);
|
||||
if (!pdesc)
|
||||
return -ENOMEM;
|
||||
if (!pdesc) {
|
||||
ret = -ENOMEM;
|
||||
goto err_disable_vregs;
|
||||
}
|
||||
|
||||
ret = aw9523_hw_init(awi);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user