mmc: block: Fix tag condition with packed writes
commit0ef78c8d7ac65c6f5c60dd8c8ce1c7075841e8dd
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 10 Jun 2016 13:22:16 +0000 (10 16:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Nov 2019 17:26:15 +0000 (28 18:26 +0100)
treed4fe2a85bd3849684f3431652fef2de13e0cbeb0
parent382896281b063fa79bfd1b4c4db85ab05a7cd7ae
mmc: block: Fix tag condition with packed writes

commit d806b46e5f496a6335ebd7f8432d2533507ce9a2 upstream.

Apparently a cut-and-paste error, 'do_data_tag' is using 'brq' for data
size even though 'brq' has not been set up. Instead use blk_rq_sectors().

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/card/block.c