omap_hsmmc: Do not expect cmd/data to be non-null when CC/TC occurs
[deliverable/linux.git] / drivers / mmc / host / omap_hsmmc.c
index d765df29ee15dd90078ce776edc3d93976324bbe..e62a22a7f00cb10089ab36424793aa498a81284f 100644 (file)
@@ -493,7 +493,7 @@ static irqreturn_t mmc_omap_irq(int irq, void *dev_id)
        /* Flush posted write */
        OMAP_HSMMC_READ(host->base, STAT);
 
-       if (end_cmd || (status & CC))
+       if (end_cmd || ((status & CC) && host->cmd))
                mmc_omap_cmd_done(host, host->cmd);
        if (end_trans || (status & TC))
                mmc_omap_xfer_done(host, data);
This page took 0.02661 seconds and 5 git commands to generate.