mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
ARM: mmci: complete the transaction on error
When we encounter an error, make sure we complete the transaction otherwise we'll leave the request dangling. Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
f5a106d9e2
commit
ccff9b5182
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ mmci_data_irq(struct mmci_host *host, struct mmc_data *data,
|
|||
if (status & MCI_DATABLOCKEND)
|
||||
dev_err(mmc_dev(host->mmc), "stray MCI_DATABLOCKEND interrupt\n");
|
||||
|
||||
if (status & MCI_DATAEND) {
|
||||
if (status & MCI_DATAEND || data->error) {
|
||||
mmci_stop_data(host);
|
||||
|
||||
if (!data->error)
|
||||
|
|
Loading…
Reference in a new issue