Re: [PATCH] power: supply: pf1550: drain IRQ work before unregistering supplies

From: Sebastian Reichel

Date: Sun Oct 04 2026 - 18:07:13 EST



On Sun, 04 Oct 2026 00:37:28 -0400, Myeonghun Pak wrote:
> The VBUS work calls power_supply_changed(), but its managed
> cancellation is registered before the supplies. Cleanup can therefore
> unregister a supply while IRQ-triggered work is still pending.
>
> Commit 838767f50747 ("power: supply: pf1550: Fix use-after-free in
> power_supply_changed()") moved IRQ requests after supply registration,
> but left work cancellation before the supplies. That change protects
> the direct IRQ callbacks, while this fix drains the work they queue.
>
> [...]

Applied, thanks!

[1/1] power: supply: pf1550: drain IRQ work before unregistering supplies
commit: 4856b49317ccd4ce96a0e8970df7d13ce8975a02

Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>