aboutsummaryrefslogtreecommitdiff
path: root/net/vmw_vsock/hyperv_transport.c
diff options
context:
space:
mode:
authorGravatar Jon Maloy <jon.maloy@ericsson.com> 2017-12-04 22:00:20 +0100
committerGravatar David S. Miller <davem@davemloft.net> 2017-12-05 14:52:41 -0500
commita7d5f107b4978e08eeab599ee7449af34d034053 (patch)
tree7eea9f2bf7169a373ef0c4a69d5a410d051e5a51 /net/vmw_vsock/hyperv_transport.c
parenttipc: fix a null pointer deref on error path (diff)
downloadlinux-a7d5f107b4978e08eeab599ee7449af34d034053.tar.gz
linux-a7d5f107b4978e08eeab599ee7449af34d034053.tar.bz2
linux-a7d5f107b4978e08eeab599ee7449af34d034053.zip
tipc: fix memory leak in tipc_accept_from_sock()
When the function tipc_accept_from_sock() fails to create an instance of struct tipc_subscriber it omits to free the already created instance of struct tipc_conn instance before it returns. We fix that with this commit. Reported-by: David S. Miller <davem@davemloft.net> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/vmw_vsock/hyperv_transport.c')
0 files changed, 0 insertions, 0 deletions