summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator
diff options
context:
space:
mode:
authorbui duc phuc <phucduc.bui@gmail.com>2026-10-09 18:24:29 +0700
committerSebastian Reichel <sebastian.reichel@collabora.com>2026-10-12 20:16:27 +0200
commit36b0abe904ac9cbdce6161d9c7c0bcac963bb3fe (patch)
treece7b3e972d44c0686334e90a63274f29d469b5a0 /rust/kernel/alloc/allocator
parent5c1c602463d597c5189ddc5a73dece588ba2c57a (diff)
power: supply: generic-adc-battery: Propagate charged GPIO errors
devm_gpiod_get_optional() may return an error pointer such as -EPROBE_DEFER, but gab_probe() only checks for NULL. The error pointer is then passed to gpiod_to_irq() and the original error, including -EPROBE_DEFER, is lost. Check the return value and propagate errors from the charged GPIO lookup. Fixes: b0327ffb133f ("power: supply: generic-adc-battery: Use GPIO descriptors") Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Reviewed-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20261009112429.33318-1-phucduc.bui@gmail.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions