aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorBalaji T K <balajitk@ti.com>2014-01-21 09:24:42 -0500
committerChris Ball <chris@printf.net>2014-03-04 11:45:10 -0500
commitd4b2c375fc7d6fe56bbc438ffe3060f87f22cdb7 (patch)
tree50c64daac76440eaab5eae5a47bcce91a5e43907 /drivers/mmc
parent6e3076c27da0ac653dda6503dadd2852c2d0eac1 (diff)
mmc: omap_hsmmc: fix request done for sbc error case
mrq is not populated for set block count(cmd23) command. Use block read/write mmc_commond pointer for request done and avoid NULL pointer access in error case for sbc (cmd23). Signed-off-by: Balaji T K <balajitk@ti.com> Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/omap_hsmmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 6cb4e19dcf07..40914f570585 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -916,7 +916,7 @@ omap_hsmmc_cmd_done(struct omap_hsmmc_host *host, struct mmc_command *cmd)
916 } 916 }
917 } 917 }
918 if ((host->data == NULL && !host->response_busy) || cmd->error) 918 if ((host->data == NULL && !host->response_busy) || cmd->error)
919 omap_hsmmc_request_done(host, cmd->mrq); 919 omap_hsmmc_request_done(host, host->mrq);
920} 920}
921 921
922/* 922/*