In the Linux kernel, the following vulnerability has been resolved:
net/9p: Fix a potential socket leak in p9socketopen
Both p9fdcreatetcp() and p9fdcreateunix() will call p9socketopen(). If the creation of p9transfd fails, p9fdcreatetcp() and p9fdcreateunix() will return an error directly instead of releasing the cscoket, which will result in a socket leak.
This patch adds sock_release() to fix the leak issue.