devices: add null check after map_guest_mem calls 91/20991/3
authorSteven Luong <sluong@cisco.com>
Wed, 31 Jul 2019 23:01:14 +0000 (16:01 -0700)
committerDave Barach <openvpp@barachs.net>
Fri, 2 Aug 2019 20:32:14 +0000 (20:32 +0000)
commit5dedae7291236a399a234ac6fa86f16d9030a0d6
tree3029984a5cddc1511915a858796bcbb3ddcc7a61
parentd2c9e702098a4fcc45310d59e18bffc9626d3849
devices: add null check after map_guest_mem calls

map_guest_mem may return null. Coverity complains about calls
without checking its return. Simple stuff.

Type: fix

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I0626115f4951a88f23d9792f0232fb57c132fbc2
src/vnet/devices/virtio/vhost_user_input.c