vhost: fix sign extension in async packed ring
authorCheng Jiang <cheng1.jiang@intel.com>
Wed, 12 May 2021 02:30:56 +0000 (02:30 +0000)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 12 May 2021 08:28:18 +0000 (10:28 +0200)
commit35139e648ad103a21589bf28ac9d5909fb483b46
tree0fd64f85f50448ecea015eecbd3a5bd493b82492
parent11a7cd8c92deab38336099f7dc1ec2aaa455ae88
vhost: fix sign extension in async packed ring

Change the variable type in store_dma_desc_info_packed() to fix
suspicious implicit sign extension.

Coverity issue: 370608, 370610, 370612
Fixes: 873e8dad6f49 ("vhost: support packed ring in async datapath")

Signed-off-by: Cheng Jiang <cheng1.jiang@intel.com>
lib/vhost/virtio_net.c