Re: [PATCH] TIPC: fix tipc_link_create error handling

2007-07-26 Thread David Miller
From: Florian Westphal <[EMAIL PROTECTED]> Date: Wed, 25 Jul 2007 00:02:56 +0200 > 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 >

[PATCH] TIPC: fix tipc_link_create error handling

2007-07-24 Thread Florian Westphal
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() suc

RE: [PATCH] TIPC: fix tipc_link_create error handling

2007-07-23 Thread Stephens, Allan
) Regards, Al -Original Message- From: Florian Westphal [mailto:[EMAIL PROTECTED] Sent: Monday, July 23, 2007 2:34 PM To: netdev@vger.kernel.org Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Stephens, Allan; [EMAIL PROTECTED] Subject: [PATCH] TIPC: fix tipc_link_create error handling i

[PATCH] TIPC: fix tipc_link_create error handling

2007-07-23 Thread Florian Westphal
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 doing printbuf allocation early and adding the new link to b_ptr->links after tipc_node_attach_link() succeeded. Signed-off-by: Florian Westphal <[E