diff options
| author | Ilya Maximets | 2016-08-03 07:22:49 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2016-08-10 16:47:29 +0200 |
| commit | ca10203cde7cf37623e0e77da1696ba1fbce5d84 (patch) | |
| tree | 24f87d97a7b5525d6be64260b0e605a7c1d94bb2 /scripts/modules | |
| parent | Update version for v2.7.0-rc2 release (diff) | |
| download | qemu-ca10203cde7cf37623e0e77da1696ba1fbce5d84.tar.gz qemu-ca10203cde7cf37623e0e77da1696ba1fbce5d84.tar.xz qemu-ca10203cde7cf37623e0e77da1696ba1fbce5d84.zip | |
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>
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions
