commit | b6aeee02980e193f744f74c48fd900940feb2799 | [log] [tgz] |
---|---|---|
author | Laurent Vivier <lvivier@redhat.com> | Fri Jun 09 09:27:48 2023 +0200 |
committer | Jason Wang <jasowang@redhat.com> | Fri Jul 07 16:35:12 2023 +0800 |
tree | 97e91d2abae35fe6176c8c9a977da985d1a2fa60 | |
parent | 23455ae341656ca867ee4a171826b9d280d6acb5 [diff] |
net: socket: remove net_init_socket() Move the file descriptor type checking before doing anything with it. If it's not usable, don't close it as it could be in use by another part of QEMU, only fail and report an error. Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>