mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
mfd: tps65910: Fix regmap_irq_chip_data leak on mfd_add_devices fail
The tps65910_i2c_probe() allocates regmap_irq_chip in tps65910_irq_init() but it does not clean this up in case of mfd_add_devices() failure. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
483e2dfdbc
commit
742766aac5
1 changed files with 1 additions and 0 deletions
|
|
@ -511,6 +511,7 @@ static int tps65910_i2c_probe(struct i2c_client *i2c,
|
|||
regmap_irq_get_domain(tps65910->irq_data));
|
||||
if (ret < 0) {
|
||||
dev_err(&i2c->dev, "mfd_add_devices failed: %d\n", ret);
|
||||
tps65910_irq_exit(tps65910);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue