net/virtio-user: fix devargs parsing
authorIvan Dyukov <i.dyukov@samsung.com>
Mon, 30 Mar 2020 07:58:00 +0000 (10:58 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:09 +0000 (13:57 +0200)
commitbc5b6c11bd81ada50345db5919dc6c7850f91de1
treed5cc05580aadd3d5df2c0dc40f02b019c9647570
parent49119e3855bd9cfcf3cdcb0db50aa53d5a746ecc
net/virtio-user: fix devargs parsing

strtoull returns 0 if it fails to parse input string. It's ignored
in get_integer_arg.

This patch handles error cases for strtoull function.

Fixes: ce2eabdd43ec ("net/virtio-user: add virtual device")
Cc: stable@dpdk.org
Signed-off-by: Ivan Dyukov <i.dyukov@samsung.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user_ethdev.c