diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-17 14:21:27 +0000 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-10-04 18:27:01 +0200 |
| commit | 09a29213bf15630e85a375478832b074b2cfc5c8 (patch) | |
| tree | 939d342c6eeb787bdbe3a31a942f5c2cdb4455b9 /rust/kernel/alloc/allocator | |
| parent | 5d32ee3bff8bc943095d04e801e1b45f1c695753 (diff) | |
power: supply: ltc2941: Fix of_node reference leak in ltc294x_i2c_probe()
ltc294x_i2c_probe() takes a reference on the device node with
of_node_get(), but never drops it, so the reference leaks on every
return path, including the success path.
The node is only used to read the battery properties and to set
info->supply_desc.name, so release it after its last use and also on
the lltc,resistor-sense error path.
Fixes: 085bc24d1553 ("Add LTC2941/LTC2943 Battery Gauge Driver")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20260917142127.2156568-1-vulab@iscas.ac.cn
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions
