kernel/fs: Add missing early return in create_socket_fd.

May fix #19682 and others.
This commit is contained in:
Augustin Cavalier
2025-10-13 23:16:45 -04:00
parent ba952ac9c0
commit 959feb6161
+1
View File
@@ -392,6 +392,7 @@ create_socket_fd(net_socket* socket, int flags, bool kernel)
if (fd < 0) {
descriptor->ops = NULL;
put_fd(descriptor);
return fd;
}
rw_lock_write_lock(&context->lock);