Skip to content

Commit

Permalink
mmc: dw_mmc: fix incorrect setting of host->data of NULL
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Will Newton <will.newton@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Seungwon Jeon authored and Chris Ball committed Jun 6, 2012
1 parent 141a712 commit fda5f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit fda5f73

Please sign in to comment.