kernel/fs: Add missing early return in create_socket_fd.
May fix #19682 and others.
This commit is contained in:
@@ -392,6 +392,7 @@ create_socket_fd(net_socket* socket, int flags, bool kernel)
|
|||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
descriptor->ops = NULL;
|
descriptor->ops = NULL;
|
||||||
put_fd(descriptor);
|
put_fd(descriptor);
|
||||||
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
rw_lock_write_lock(&context->lock);
|
rw_lock_write_lock(&context->lock);
|
||||||
|
|||||||
Reference in New Issue
Block a user