projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58414a3
)
pinctrl: aw9523: add missing mutex_destroy
author
Rosen Penev
<rosenp@gmail.com>
Tue, 1 Oct 2024 21:27:22 +0000
(14:27 -0700)
committer
Linus Walleij
<linus.walleij@linaro.org>
Fri, 4 Oct 2024 07:42:35 +0000
(09:42 +0200)
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>
drivers/pinctrl/pinctrl-aw9523.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-aw9523.c
b/drivers/pinctrl/pinctrl-aw9523.c
index
e312a2c
..
f6df8d3
100644
(file)
--- a/
drivers/pinctrl/pinctrl-aw9523.c
+++ b/
drivers/pinctrl/pinctrl-aw9523.c
@@
-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)