]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: error path leak fixes in tipc_enable_bearer()
authorTommi Rantala <tommi.t.rantala@nokia.com>
Fri, 22 Dec 2017 07:35:16 +0000 (09:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Dec 2017 15:54:59 +0000 (10:54 -0500)
commitc91aadb1bbbb944a537b77de740a363e4cb4d875
tree14dfb9960bbccb771cec3be19a1b0408414c8b89
parent29c454af9beda5e7e969b7fdbda25b3abd3cbfd3
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