Greg Kurz 39e0a6bd07 9p/trans_virtio: discard zero-length reply
commit 26d99834f89e76514076d9cd06f61e56e6a509b8 upstream.

When a 9p request is successfully flushed, the server is expected to just
mark it as used without sending a 9p reply (ie, without writing data into
the buffer). In this case, virtqueue_get_buf() will return len == 0 and
we must not report a REQ_STATUS_RCVD status to the client, otherwise the
client will erroneously assume the request has not been flushed.

Cc: stable@vger.kernel.org
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-22 15:43:50 +01:00
..
2016-12-03 23:54:25 -05:00
2017-11-15 15:53:17 +01:00
2017-12-16 16:25:47 +01:00
2016-05-29 22:33:25 -07:00
2016-10-20 11:23:08 -04:00
2018-01-02 20:35:10 +01:00
2017-10-08 10:26:06 +02:00
2016-08-17 19:36:23 -04:00
2016-08-17 19:36:23 -04:00