]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
mmc: block: Fix incorrectly initialized requests
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 7 Sep 2017 07:40:35 +0000 (10:40 +0300)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 12 Oct 2017 21:20:01 +0000 (16:20 -0500)
commit15e410529dd1f6ffde9cc7986b1f55e1e51029f4
tree4036290a9dccf24d916186b835f3080b42908d24
parent95bab525abce359eb594fabe5c323209dba8375d
mmc: block: Fix incorrectly initialized requests

BugLink: http://bugs.launchpad.net/bugs/1721777
commit 01f5bbd17a8066b58dba9b5049fad504bce67322 upstream.

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>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/mmc/core/queue.c