vhost: fix sign extension in async split ring
authorCheng Jiang <cheng1.jiang@intel.com>
Wed, 12 May 2021 02:30:41 +0000 (02:30 +0000)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 12 May 2021 08:28:08 +0000 (10:28 +0200)
commit11a7cd8c92deab38336099f7dc1ec2aaa455ae88
treeb3d9f6ab7188f4e6ff729c70b466680400e242ce
parent4b42104c47930af835ff4781b97aec739900bdaf
vhost: fix sign extension in async split ring

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

Coverity issue: 370604, 370607, 370609
Fixes: 3d6cb86b0de5 ("vhost: refactor async split ring functions")

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