diff options
author | Krzysztof Kozlowski <[email protected]> | 2014-10-15 16:25:10 +0200 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2014-10-28 03:30:18 +0100 |
commit | 21e863b233553998737e1b506c823a00bf012e00 (patch) | |
tree | e8fd8fe88d187795429ab7cba28440ba12e09823 /net/lapb/lapb_timer.c | |
parent | 0eaf437aa14949d2230aeab7364f4ab47901304a (diff) |
power: bq2415x_charger: Fix memory leak on DTS parsing error
Memory allocated for 'name' was leaking if required binding properties
were not present.
The memory for 'name' was allocated early at probe with kasprintf(). It
was freed in error paths executed before and after parsing DTS but not
in that error path.
Fix the error path for parsing device tree properties.
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Fixes: faffd234cf85 ("bq2415x_charger: Add DT support")
Cc: <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions