Skip to contentSkip to conversation

mmc: dw_mmc: fix the wrong sequence

PATCH In review Seungwon Jeon 1 participant 1 message May 22, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 3/4 mmc: dw_mmc: fix the wrong sequence

Setting host->data to NULL is incorrect sequence in dw_mci_command_complete. This early setting makes the skip of dma_unmap_sg in dw_mci_dma_cleanup.

---
 drivers/mmc/host/dw_mmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/host/dw_mmc.c +1 -1
index 98fe023..b070ee5 100644
@@ -941,8 +941,8 @@ static void dw_mci_command_complete(struct dw_mci *host, struct mmc_command *cmd
 			mdelay(20);
 
 		if (cmd->data) {
-			host->data = NULL;
 			dw_mci_stop_dma(host);
+			host->data = NULL;
 		}
 	}
 }
Signature · 1 line
1.7.0.4