811-mmc-null-ptr-fix.patch 291 B

1234567891011
  1. --- a/drivers/mmc/host/omap.c
  2. +++ b/drivers/mmc/host/omap.c
  3. @@ -832,7 +832,7 @@ static irqreturn_t mmc_omap_irq(int irq,
  4. return IRQ_HANDLED;
  5. }
  6. - if (end_command)
  7. + if (end_command && host->cmd)
  8. mmc_omap_cmd_done(host, host->cmd);
  9. if (host->data != NULL) {
  10. if (transfer_error)