summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator
diff options
context:
space:
mode:
authorAlexey Charkov <alchark@flipper.net>2026-09-10 18:32:59 +0400
committerSebastian Reichel <sebastian.reichel@collabora.com>2026-10-04 18:50:10 +0200
commit1a64071bb30d97b75a1029943b6a3481098b254b (patch)
tree393ab08e3f9a5be31e76250b289447e200520ff3 /rust/kernel/alloc/allocator
parent09a29213bf15630e85a375478832b074b2cfc5c8 (diff)
power: supply: bq257xx: Use psy directly instead of driver data
bq257xx_external_power_changed() is handed the power supply it is called for, but passes pdata->charger to power_supply_am_i_supplied(). Those are not equivalent during probe or teardown, and a supplier's changed_work can reach power_supply_external_power_changed() when pdata->charger doesn't point anywhere meaningful (e.g. freed memory during teardown). Use the psy argument, which is valid whenever the callback runs. Fixes: 1cc017b7f9c7 ("power: supply: bq257xx: Add support for BQ257XX charger") Signed-off-by: Alexey Charkov <alchark@flipper.net> Link: https://patch.msgid.link/20260910-bq257xx-init-v3-2-4e219a1a04a5@flipper.net Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions