diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2014-03-12 11:50:45 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-03-19 05:06:10 -0400 |
commit | 742766aac563ea1c28e9f86ed53db757a2872081 (patch) | |
tree | 1dd05404f302febd8915f3a6ae0b4f6806fb3ac2 | |
parent | 483e2dfdbc94751430e41db9973985f5b054d322 (diff) |
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 <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/tps65910.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c index d6573318977f..460a014ca629 100644 --- a/drivers/mfd/tps65910.c +++ b/drivers/mfd/tps65910.c | |||
@@ -511,6 +511,7 @@ static int tps65910_i2c_probe(struct i2c_client *i2c, | |||
511 | regmap_irq_get_domain(tps65910->irq_data)); | 511 | regmap_irq_get_domain(tps65910->irq_data)); |
512 | if (ret < 0) { | 512 | if (ret < 0) { |
513 | dev_err(&i2c->dev, "mfd_add_devices failed: %d\n", ret); | 513 | dev_err(&i2c->dev, "mfd_add_devices failed: %d\n", ret); |
514 | tps65910_irq_exit(tps65910); | ||
514 | return ret; | 515 | return ret; |
515 | } | 516 | } |
516 | 517 | ||