vhost: check poll error code
authorKuba Kozak <kubax.kozak@intel.com>
Fri, 22 Sep 2017 12:17:40 +0000 (14:17 +0200)
committerYuanhan Liu <yliu@fridaylinux.org>
Tue, 10 Oct 2017 13:54:31 +0000 (15:54 +0200)
commit66a62101240bb714a6d2d5acd39010675251ffec
treed18931346ec47775ef57a54e4eabd1ff475f0d72
parent907d125e2c3a4801558c2f6988e54f427e1b444a
vhost: check poll error code

Add return value check for poll() call.

Coverity issue: 140740
Fixes: 59317cef249c ("vhost: allow many vhost-user ports")
Cc: stable@dpdk.org
Signed-off-by: Kuba Kozak <kubax.kozak@intel.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
lib/librte_vhost/fd_man.c