From c0352cb71d3d573a33af92d320f29f1c79d71b8b Mon Sep 17 00:00:00 2001 From: Devendra Naga Date: Sat, 13 Apr 2013 20:16:51 +0530 Subject: [PATCH] staging: gdm72xx: cancel work when driver unloads cancel the work function at driver unload stage and remove the function from the queue Cc: Ben Chan Signed-off-by: Devendra Naga Signed-off-by: Greg Kroah-Hartman --- drivers/staging/gdm72xx/gdm_sdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/gdm72xx/gdm_sdio.c b/drivers/staging/gdm72xx/gdm_sdio.c index 695762b0e942..047a4d77f5ee 100644 --- a/drivers/staging/gdm72xx/gdm_sdio.c +++ b/drivers/staging/gdm72xx/gdm_sdio.c @@ -689,6 +689,7 @@ static void sdio_wimax_remove(struct sdio_func *func) struct phy_dev *phy_dev = sdio_get_drvdata(func); struct sdiowm_dev *sdev = phy_dev->priv_dev; + cancel_work_sync(&sdev->ws); if (phy_dev->netdev) unregister_wimax_device(phy_dev); sdio_claim_host(func); -- 2.39.5