From: Devendra Naga Date: Sat, 13 Apr 2013 14:46:51 +0000 (+0530) Subject: staging: gdm72xx: cancel work when driver unloads X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=c0352cb71d3d573a33af92d320f29f1c79d71b8b;p=deliverable%2Flinux.git 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 --- 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);