]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc809d230a116755d9c311321934ad24162e9b371
tree17bef7045a199c4c0a6e6fd7e1da9d90a6e47ff5
parente7ebe1d9892b49cd965ae22d5445044e9e609e3b
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