]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - net/tipc/link.c
tipc: refactor node xmit and fix memory leaks
authorRichard Alpe <richard.alpe@ericsson.com>
Thu, 11 Feb 2016 09:43:15 +0000 (10:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2016 20:58:40 +0000 (15:58 -0500)
commit4952cd3e7b47dfe8f7d6c69973b13eb487eb2bd0
tree17bef7045a199c4c0a6e6fd7e1da9d90a6e47ff5
parent37ace20a3c99c54ebffb4b13671a01adb20926ca
tipc: refactor node xmit and fix memory leaks

Refactor tipc_node_xmit() to fail fast and fail early. Fix several
potential memory leaks in unexpected error paths.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c
net/tipc/node.c