diff options
author | Peter Maydell | 2018-06-15 12:41:44 +0200 |
---|---|---|
committer | Peter Maydell | 2018-06-15 12:41:44 +0200 |
commit | 91fe7a376ad46e3cc5e82d418aad22173c948a3c (patch) | |
tree | 076c5367d214228c7344bd08cf16e5aa3fb1ad4d /net/net.c | |
parent | Merge remote-tracking branch 'remotes/kraxel/tags/ui-20180614-pull-request' i... (diff) | |
parent | vhost-user: delete net client if necessary (diff) | |
download | qemu-91fe7a376ad46e3cc5e82d418aad22173c948a3c.tar.gz qemu-91fe7a376ad46e3cc5e82d418aad22173c948a3c.tar.xz qemu-91fe7a376ad46e3cc5e82d418aad22173c948a3c.zip |
Merge remote-tracking branch 'remotes/jasowang/tags/net-pull-request' into staging
# gpg: Signature made Fri 15 Jun 2018 03:47:09 BST
# gpg: using RSA key EF04965B398D6211
# gpg: Good signature from "Jason Wang (Jason Wang on RedHat) <jasowang@redhat.com>"
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg: It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 215D 46F4 8246 689E C77F 3562 EF04 965B 398D 6211
* remotes/jasowang/tags/net-pull-request:
vhost-user: delete net client if necessary
e1000e: Do not auto-clear ICR bits which aren't set in EIAC
net: Fix a potential segfault
tap: set vhostfd passed from qemu cli to non-blocking
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'net/net.c')
-rw-r--r-- | net/net.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1093,7 +1093,9 @@ static int net_client_init(QemuOpts *opts, bool is_netdev, Error **errp) int ret = -1; Visitor *v = opts_visitor_new(opts); - if (is_netdev && is_help_option(qemu_opt_get(opts, "type"))) { + const char *type = qemu_opt_get(opts, "type"); + + if (is_netdev && type && is_help_option(type)) { show_netdevs(); exit(0); } else { |