diff options
author | Balaji T K <balajitk@ti.com> | 2014-01-21 09:24:42 -0500 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-03-04 11:45:10 -0500 |
commit | d4b2c375fc7d6fe56bbc438ffe3060f87f22cdb7 (patch) | |
tree | 50c64daac76440eaab5eae5a47bcce91a5e43907 /drivers/mmc | |
parent | 6e3076c27da0ac653dda6503dadd2852c2d0eac1 (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.c | 2 |
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 | /* |