[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT/LWIP PATCH] liblwip: Remove vfscore_put_fd from socket_close
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@xxxxxxxxx> --- sockets.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sockets.c b/sockets.c index 0cf22de..bbee72b 100644 --- a/sockets.c +++ b/sockets.c @@ -169,8 +169,6 @@ static int sock_net_close(struct vnode *s_vnode, /* 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 */ -- 2.7.4 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |