OSDN Git Service

mmc: block: do not assign mq_rq when aborting command
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 24 Jan 2017 10:17:54 +0000 (11:17 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:38 +0000 (13:20 +0100)
commit6fb85d658308952142da6abb4e066dd22dd48c01
treec5432cd6304a3a0d49a632503edc06d64c96fc2d
parentefb5a05e70dfa79fe26133be9a239cbca8ea08c3
mmc: block: do not assign mq_rq when aborting command

The code in mmc_blk_issue_rq_rq() aborts a command if the request
is not properly aligned on large sectors. As part of the path
jumping out, it assigns the local variable mq_rq reflecting
a MMC queue request to the current MMC queue request, which is
confusing since the variable is not used after this jump.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c