From: Andrew Gabbasov Date: Wed, 1 Oct 2014 12:14:09 +0000 (-0500) Subject: mmc: core: Initialize SET_BLOCK_COUNT request fields X-Git-Tag: v4.9.8~5267^2~118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cce411e68515ee14c323d0d1fef638ed0aead7a6;p=platform%2Fkernel%2Flinux-rpi3.git mmc: core: Initialize SET_BLOCK_COUNT request fields Some request fields are initialized just before request processing for sanity purposes. This is done for command, data, and stop parts of the request, but not for sbc (set block count) part. Add such initialization for that part too. Signed-off-by: Andrew Gabbasov Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index f26a5f1..9f1ecc4 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -214,6 +214,10 @@ mmc_start_request(struct mmc_host *host, struct mmc_request *mrq) mrq->cmd->error = 0; mrq->cmd->mrq = mrq; + if (mrq->sbc) { + mrq->sbc->error = 0; + mrq->sbc->mrq = mrq; + } if (mrq->data) { BUG_ON(mrq->data->blksz > host->max_blk_size); BUG_ON(mrq->data->blocks > host->max_blk_count);