]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/blobdiff - drivers/mmc/core/core.c
mmc: fix rmmod race for hosts using card-detection polling
[lisovros/linux_canprio.git] / drivers / mmc / core / core.c
index 09eee6df0653c84fc5c08023f8913a6afbb884a7..9ca553b79f12ae8d5c861f3a2aa8018216079884 100644 (file)
@@ -1514,7 +1514,7 @@ void mmc_stop_host(struct mmc_host *host)
 
        if (host->caps & MMC_CAP_DISABLE)
                cancel_delayed_work(&host->disable);
-       cancel_delayed_work(&host->detect);
+       cancel_delayed_work_sync(&host->detect);
        mmc_flush_scheduled_work();
 
        /* clear pm flags now and let card drivers set them as needed */