This patch fixes a bug in the function sock_net_close. The close
function frees up a descriptor that was removed by fdrop. The fdrop
function invokes the close callback after it had removed the fd
from its list.
Signed-off-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
Reviewed-by: Florian Schmidt <florian.schmidt@neclab.eu>
/* Close and release the lwip socket */
ret = lwip_close(file->sock_fd);
- /* Release the file descriptor number */
- vfscore_put_fd(file->vfscore_file.fd);
/* Free socket vnode */
uk_free(uk_alloc_get_default(), file->vfscore_file.f_dentry->d_vnode);
/* Free socket dentry */