-
由 Fam Zheng 提交于
If device reports a small max_xfer_blocks and a zero opt_xfer_blocks, we end up using BLK_DEF_MAX_SECTORS, which is wrong and r/w of that size may get error. [mkp: tweaked to avoid setting rw_max twice and added typecast] Cc: <stable@vger.kernel.org> # v4.4+ Fixes: ca369d51 ("block/sd: Fix device-imposed transfer length limits") Signed-off-by: NFam Zheng <famz@redhat.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
67804145