Skip to content

Commit edb0a2c

Browse files
ralflicigregkh
authored andcommitted
Revert "usb: phy: fsl-usb: Fix use-after-free in delayed work during device removal"
This reverts commit 4476c73. The reverted commit uses disable_delayed_work_sync, which was introduced by commit 86898fa ("workqueue: Implement disable/enable for (delayed) work items") in v6.10. The function is therefore unavailable in 6.1.y, causing configurations that enable CONFIG_FSL_USB2_OTG to fail to build. The upstream commit is unaffected; only its incompatible stable backport is being reverted. Fixes: 4476c73 ("usb: phy: fsl-usb: Fix use-after-free in delayed work during device removal") Link: https://lore.kernel.org/stable/20260827154302.706689-1-ralf@mandelbit.com/ Signed-off-by: Ralf Lici <ralf@mandelbit.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent a10f508 commit edb0a2c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/usb/phy/phy-fsl-usb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,6 @@ static int fsl_otg_remove(struct platform_device *pdev)
987987
{
988988
struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev);
989989

990-
disable_delayed_work_sync(&fsl_otg_dev->otg_event);
991990
usb_remove_phy(&fsl_otg_dev->phy);
992991
free_irq(fsl_otg_dev->irq, fsl_otg_dev);
993992

0 commit comments

Comments
 (0)