Commit 9fe3986d authored by Russell King's avatar Russell King

[MMC] Avoid potential oops in MMCI.

Avoid calling mmci_data_irq if we do not have a data phase.
parent 8c262e43
...@@ -264,7 +264,7 @@ static irqreturn_t mmci_irq(int irq, void *dev_id, struct pt_regs *regs) ...@@ -264,7 +264,7 @@ static irqreturn_t mmci_irq(int irq, void *dev_id, struct pt_regs *regs)
data = host->data; data = host->data;
if (status & (MCI_DATACRCFAIL|MCI_DATATIMEOUT|MCI_TXUNDERRUN| if (status & (MCI_DATACRCFAIL|MCI_DATATIMEOUT|MCI_TXUNDERRUN|
MCI_RXOVERRUN|MCI_DATAEND|MCI_DATABLOCKEND)) MCI_RXOVERRUN|MCI_DATAEND|MCI_DATABLOCKEND) && data)
mmci_data_irq(host, data, status); mmci_data_irq(host, data, status);
cmd = host->cmd; cmd = host->cmd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment