]> git.droids-corp.org - dpdk.git/commit
vdpa/ifc: fix vhost message size check
authorAndy Pei <andy.pei@intel.com>
Tue, 21 Jun 2022 13:46:31 +0000 (21:46 +0800)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 1 Jul 2022 13:49:49 +0000 (15:49 +0200)
commit98c6096187202f73ff79b81e370a32ccc5c77f7a
treeb920fd57d2922cdc018e7c8759def505c935676f
parent9851c4e339b8e20fe8b56d8fb918e139cbbf2ebd
vdpa/ifc: fix vhost message size check

For vhost message VHOST_USER_GET_CONFIG, we do not check
payload size in vhost lib, we check payload size in driver
specific ops.
For ifc vdpa driver, we just need to make sure payload size
is not smaller than sizeof(struct virtio_blk_config).

Fixes: 856d03bcdc54 ("vdpa/ifc: add block operations")
Signed-off-by: Andy Pei <andy.pei@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/ifc/ifcvf_vdpa.c