summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorBalaji T K <balajitk@ti.com>2014-01-21 19:54:42 +0530
committerChris Ball <chris@printf.net>2014-03-04 11:45:10 -0500
commitd4b2c375fc7d6fe56bbc438ffe3060f87f22cdb7 (patch)
tree50c64daac76440eaab5eae5a47bcce91a5e43907 /drivers/mmc/host
parent6e3076c27da0ac653dda6503dadd2852c2d0eac1 (diff)
downloadop-kernel-dev-d4b2c375fc7d6fe56bbc438ffe3060f87f22cdb7.zip
op-kernel-dev-d4b2c375fc7d6fe56bbc438ffe3060f87f22cdb7.tar.gz
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/host')
-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 6cb4e19..40914f5 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)
}
}
if ((host->data == NULL && !host->response_busy) || cmd->error)
- omap_hsmmc_request_done(host, cmd->mrq);
+ omap_hsmmc_request_done(host, host->mrq);
}
/*
OpenPOWER on IntegriCloud