fix: kernel_dev and kernel_type may be used uninitialized in this function
net/socket.c Fix: warning: sock may be used uninitialized in this function