mmc: block: Fix incorrectly initialized requests
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 7 Sep 2017 07:40:35 +0000 (10:40 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 8 Sep 2017 13:37:51 +0000 (15:37 +0200)
commit01f5bbd17a8066b58dba9b5049fad504bce67322
treed710d106f349d26790cfa5ea45ad9af0acb155e0
parentc16a854e4463078aedad601fac76341760a66dd1
mmc: block: Fix incorrectly initialized requests

mmc_init_request() depends on card->bouncesz so it must be calculated
before blk_init_allocated_queue() starts allocating requests.

Reported-by: Seraphime Kirkovski <kirkseraph@gmail.com>
Fixes: 304419d8a7e9 ("mmc: core: Allocate per-request data using the..")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Seraphime Kirkovski <kirkseraph@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Pavel Machek <pavel@ucw.cz>
drivers/mmc/core/queue.c