Ilya Maximets ca10203cde vhost: check for vhost_ops before using.
'vhost_set_vring_enable()' tries to call function using pointer to
'vhost_ops' which can be already zeroized in 'vhost_dev_cleanup()'
while vhost disconnection.

Fix that by checking 'vhost_ops' before using. This fixes QEMU crash
on calling 'ethtool -L eth0 combined 2' if vhost disconnected.

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2016-08-10 17:47:29 +03:00
..
2016-07-21 20:44:20 +03:00
2016-07-19 20:18:02 +02:00
2016-08-05 13:05:29 +01:00
2016-07-21 20:44:20 +03:00
2016-06-17 16:33:48 +10:00
2016-06-14 15:59:13 +01:00
2016-08-08 12:41:38 +01:00
2016-08-08 00:00:28 +04:00
2016-05-18 15:04:27 +03:00
2016-06-07 18:02:48 +03:00
2016-06-29 14:03:48 +02:00
2016-07-29 00:07:09 +03:00
2016-01-29 15:07:25 +00:00
2016-08-08 12:47:02 +02:00
2016-06-24 05:13:57 +03:00
2016-07-12 12:34:41 +01:00
2016-08-08 00:00:36 +04:00
2016-07-29 11:57:01 +01:00
2015-12-22 18:39:19 +02:00