mmc: block: Restore line inadvertently removed with packed commands

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Adrian Hunter 2016-11-29 12:09:08 +02:00 committed by Ulf Hansson
parent 34c1c21e94
commit 5dd784d2e4
1 changed files with 2 additions and 0 deletions

View File

@ -1587,6 +1587,8 @@ static int mmc_blk_cmd_err(struct mmc_blk_data *md, struct mmc_card *card,
if (blocks != (u32)-1) {
ret = blk_end_request(req, 0, blocks << 9);
}
} else {
ret = blk_end_request(req, 0, brq->data.bytes_xfered);
}
return ret;
}