]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: block: Fix 4K native sector check
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 29 Nov 2016 10:09:09 +0000 (12:09 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 5 Dec 2016 09:31:03 +0000 (10:31 +0100)
commiteef5a82d785905c65b4e946ded8489776650434a
treeeaf9dbc88bc1970413b8eb16ed92b502b52cd01f
parent3f45a2fa5c0ce4c3e1725f4f1ab849657ed2ebdb
mmc: block: Fix 4K native sector check

The 4K native sector check does not allow for the 'do' loop nor the
variables used after the 'cmd_abort' label.

'brq' and 'req' get reassigned in the 'do' loop, so the check must not
assume what their values are. After the 'cmd_abort' label, 'mq_rq' and
'req' are used, but 'rqc' must be NULL otherwise it can be started again.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/block.c