numam-dpdk/lib/librte_vhost/vhost_user
Jerome Jutteau 6c6373c763 vhost: fix missing device checks
virtio-net search for it's device in reset_owner.
The function don't check the return result of get_config_ll_entry.
Using get_config_ll_entry in reset_owner don't show any error when the
device is not found. This patch fix this by using get_device instead
instead of get_config_ll_entry.

In user_get_vring_base, get_device return is not checked and may cause
segfault when device is not found.

Signed-off-by: Jerome Jutteau <jerome.jutteau@outscale.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2015-10-21 12:21:18 +02:00
..
fd_man.c vhost: comment unwanted callback 2015-06-30 17:49:08 +02:00
fd_man.h vhost: support dynamically registering server 2015-02-24 01:38:17 +01:00
vhost-net-user.c vhost: get rid of duplicate code 2015-09-25 14:55:17 +02:00
vhost-net-user.h vhost: cleanup unix socket 2015-06-30 17:49:08 +02:00
virtio-net-user.c vhost: fix missing device checks 2015-10-21 12:21:18 +02:00
virtio-net-user.h vhost: support vhost-user 2015-02-24 01:38:15 +01:00