block/export: Fix incorrect length passed to vu_queue_push()
authorXie Yongji <xieyongji@bytedance.com>
Mon, 23 May 2022 08:46:05 +0000 (16:46 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jun 2022 15:07:06 +0000 (17:07 +0200)
commit8e7fd6f623fb8f6c6eb9b456d9221d4c8226f3d5
tree28bbf39a8fcd3866c197931f2d33facd7040ac2e
parentac1fc3a3a93ca57271e4ca6072aa340b30261d1e
block/export: Fix incorrect length passed to vu_queue_push()

Now the req->size is set to the correct value only
when handling VIRTIO_BLK_T_GET_ID request. This patch
fixes it.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Message-Id: <20220523084611.91-3-xieyongji@bytedance.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/export/vhost-user-blk-server.c