vhost: add missing check in driver registration
authorJens Freimann <jfreimann@redhat.com>
Tue, 4 Jul 2017 08:50:41 +0000 (10:50 +0200)
committerYuanhan Liu <yliu@fridaylinux.org>
Tue, 4 Jul 2017 09:11:01 +0000 (11:11 +0200)
commit6846128798741f70555a6ca10133458c5491cf12
tree7c0a78dc0f9a28119e4ff8ad3e18da98325c34a3
parent02f62392ffcaf1617e0749fe3d6e0263c077ef79
vhost: add missing check in driver registration

Add a check for strdup() return value and fail gracefully if we
get a bad return code.

Signed-off-by: Jens Freimann <jfreimann@redhat.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/socket.c