summaryrefslogtreecommitdiff
path: root/include/linux/power
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2014-10-15 16:25:10 +0200
committerLuis Henriques <luis.henriques@canonical.com>2014-11-20 12:01:50 +0000
commit9863a15783a6e7b97bcdc6afc07505daa0973c4c (patch)
tree345e1c64865c0f27d0ed7f48e6063d9063b61888 /include/linux/power
parentfe652189d20c5e01f5874dccedf3019d93a559c7 (diff)
power: bq2415x_charger: Fix memory leak on DTS parsing error
commit 21e863b233553998737e1b506c823a00bf012e00 upstream. 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 <k.kozlowski@samsung.com> Fixes: faffd234cf85 ("bq2415x_charger: Add DT support") Signed-off-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux/power')
0 files changed, 0 insertions, 0 deletions