]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix error handling in tipc_udp_enable()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 26 Mar 2018 14:32:44 +0000 (14:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Mar 2018 14:50:02 +0000 (10:50 -0400)
commit8170a831b5e4f8845fa49500acc5eed7c54b8849
tree8afac22694ad35d0facca4992e7f10db51484031
parentf8c8ed9a3d018dec8e3ce1830f1386073e935835
tipc: fix error handling in tipc_udp_enable()

Release alloced resource before return from the error handling
case in tipc_udp_enable(), otherwise will cause memory leak.

Fixes: 51ffc50d8a0a ("tipc: obtain node identity from interface by default")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/udp_media.c