]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Enhance handling of discovery object creation failures
authorAllan Stephens <Allan.Stephens@windriver.com>
Thu, 21 Apr 2011 18:58:26 +0000 (13:58 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 10 May 2011 20:03:59 +0000 (16:03 -0400)
commit1ecc9f59472bec6a5f003ce1b37fc66d3c885f7b
tree50f2b2ca5c9a2a4a1df107da4db00611ae938f32
parent8c301e0314ffedc008032d2ea28083df7686f427
tipc: Enhance handling of discovery object creation failures

Modifies bearer creation and deletion code to improve handling of
scenarios when a neighbor discovery object cannot be created. The
creation routine now aborts the creation of a bearer if its discovery
object cannot be created, and deletes the newly created bearer, rather
than failing quietly and leaving an unusable bearer hanging around.

Since the exit via the goto label really isn't a definitive failure
in all cases, relabel it appropriately.

Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/bearer.c
net/tipc/discover.c
net/tipc/discover.h