vhost: check DMA info return
authorJiayu Hu <jiayu.hu@intel.com>
Wed, 29 Jun 2022 09:07:06 +0000 (05:07 -0400)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 1 Jul 2022 13:49:49 +0000 (15:49 +0200)
commit1e4bcee9ba8308f8401671224a7860a22e43b8b0
tree2cfe3af7e175ba0e81d46519eaa3189a258c6340
parent2eb13ddea3847fe57653d1ffef1e8e3d9e3cc84c
vhost: check DMA info return

This patch checks the return value of rte_dma_info_get()
called in rte_vhost_async_dma_configure().

Coverity issue: 379066
Fixes: 53d3f4778c1d ("vhost: integrate dmadev in asynchronous data-path")
Cc: stable@dpdk.org
Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
lib/vhost/vhost.c