diff options
author | Krzysztof Kozlowski | 2014-03-18 13:57:50 +0100 |
---|---|---|
committer | Lee Jones | 2014-03-19 09:00:08 +0000 |
commit | 8c66eeced1989c98104783832ab445305fa8c7a3 (patch) | |
tree | 04d24dd2e725a75bf5e234369b5f3846b0f10541 /security | |
parent | 53c31b3437a6400c6ffc2c9315680217ad84cb6d (diff) |
mfd: sec-core: Fix I2C dummy device resource leak on probe failure
Dummy I2C device allocated in sec_pmic_probe() leaked if
devm_regmap_init_i2c() failed. Unregister it before returning from
probe.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions