mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
Revert "usb: phy: fsl-usb: Fix use-after-free in delayed work during device removal"
This reverts commit319f7a85b3. The reverted commit uses disable_delayed_work_sync, which was introduced by commit86898fa6b8("workqueue: Implement disable/enable for (delayed) work items") in v6.10. The function is therefore unavailable in 6.6.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:319f7a85b3("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
eb1e94fee5
commit
ff3f428df0
@@ -987,7 +987,6 @@ static void fsl_otg_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct fsl_usb2_platform_data *pdata = dev_get_platdata(&pdev->dev);
|
||||
|
||||
disable_delayed_work_sync(&fsl_otg_dev->otg_event);
|
||||
usb_remove_phy(&fsl_otg_dev->phy);
|
||||
free_irq(fsl_otg_dev->irq, fsl_otg_dev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user