]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
memstick: mspro_block: Fix an error code in mspro_block_issue_req()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 10 May 2019 11:24:41 +0000 (14:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:19:17 +0000 (12:19 +0200)
commit4a1ef8ab4aadc568a890a85a33ee15cf60d5cf2a
tree10816fc6d20a6207d9a3b8f4191f491c64698b29
parentdf14ab43d848a0d78f38374898b921f01bf525cd
memstick: mspro_block: Fix an error code in mspro_block_issue_req()

commit 61009f82a93f7c0b33cd9b3b263a6ab48f8b49d4 upstream.

We accidentally changed the error code from -EAGAIN to 1 when we did the
blk-mq conversion.

Maybe a contributing factor to this mistake is that it wasn't obvious
that the "while (chunk) {" condition is always true.  I have cleaned
that up as well.

Fixes: d0be12274dad ("mspro_block: convert to blk-mq")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/memstick/core/mspro_block.c