From: Florian Westphal Date: Thu, 26 Jul 2007 07:05:07 +0000 (-0700) Subject: [TIPC]: fix tipc_link_create error handling X-Git-Tag: v2.6.23-rc2~35^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94571065757a4f2619c48ab4e36cafdc635028ce;p=pandora-kernel.git [TIPC]: fix tipc_link_create error handling if printbuf allocation or tipc_node_attach_link() fails, invalid references to the link are left in the associated node and bearer structures. Fix by allocating printbuf early and moving timer initialization and the addition of the new link to the b_ptr->links list after tipc_node_attach_link() succeeded. Signed-off-by: Florian Westphal Signed-off-by: David S. Miller --- Reading git-diff-tree failed