tipc: error path leak fixes in tipc_enable_bearer()
commit19142551b2be4a9e13838099fde1351386e5e007
authorTommi Rantala <tommi.t.rantala@nokia.com>
Fri, 22 Dec 2017 07:35:16 +0000 (22 09:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Dec 2017 15:54:59 +0000 (27 10:54 -0500)
tree14dfb9960bbccb771cec3be19a1b0408414c8b89
parent14e138a86f6347c6199f610576d2e11c03bec5f0
tipc: error path leak fixes in tipc_enable_bearer()

Fix memory leak in tipc_enable_bearer() if enable_media() fails, and
cleanup with bearer_disable() if tipc_mon_create() fails.

Acked-by: Ying Xue <ying.xue@windriver.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/bearer.c