mmc: omap_hsmmc: fix request done for sbc error case
authorBalaji T K <balajitk@ti.com>
Tue, 21 Jan 2014 14:24:42 +0000 (19:54 +0530)
committerChris Ball <chris@printf.net>
Tue, 4 Mar 2014 16:45:10 +0000 (11:45 -0500)
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>
drivers/mmc/host/omap_hsmmc.c

index 6cb4e19dcf072efae3fa0cc9c856e04cedbe9013..40914f5705859cf14707290d611830b5105871a2 100644 (file)
@@ -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);
 }
 
 /*