diff options
Diffstat (limited to 'drivers/mmc/host/via-sdmmc.c')
-rw-r--r-- | drivers/mmc/host/via-sdmmc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/via-sdmmc.c b/drivers/mmc/host/via-sdmmc.c index 9fdb92729c28..1b66466d2ed4 100644 --- a/drivers/mmc/host/via-sdmmc.c +++ b/drivers/mmc/host/via-sdmmc.c | |||
@@ -865,6 +865,9 @@ static void via_sdc_data_isr(struct via_crdr_mmc_host *host, u16 intmask) | |||
865 | { | 865 | { |
866 | BUG_ON(intmask == 0); | 866 | BUG_ON(intmask == 0); |
867 | 867 | ||
868 | if (!host->data) | ||
869 | return; | ||
870 | |||
868 | if (intmask & VIA_CRDR_SDSTS_DT) | 871 | if (intmask & VIA_CRDR_SDSTS_DT) |
869 | host->data->error = -ETIMEDOUT; | 872 | host->data->error = -ETIMEDOUT; |
870 | else if (intmask & (VIA_CRDR_SDSTS_RC | VIA_CRDR_SDSTS_WC)) | 873 | else if (intmask & (VIA_CRDR_SDSTS_RC | VIA_CRDR_SDSTS_WC)) |