Re: [PATCH 3/3] net: socket: remove net_init_socket()

2023-06-14 Thread David Gibson
On Fri, 9 Jun 2023 09:27:48 +0200 Laurent Vivier wrote: > 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. > > Signed-off-by: Laurent Vivier Reviewed-by: D

[PATCH 3/3] net: socket: remove net_init_socket()

2023-06-09 Thread Laurent Vivier
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. Signed-off-by: Laurent Vivier --- net/socket.c | 43 +-- 1 file changed,