Re: [PATCH 1/2] [IrDA] Fix RCU lock pairing on error path

2006-06-29 Thread David Miller
From: Samuel Ortiz <[EMAIL PROTECTED]> Date: Fri, 30 Jun 2006 09:55:34 +0300 > irlan_client_discovery_indication calls rcu_read_lock and rcu_read_unlock, but > returns without unlocking in an error case. Fix that by replacing the return > with a goto so that the rcu_read_unlock always gets execut

[PATCH 1/2] [IrDA] Fix RCU lock pairing on error path

2006-06-29 Thread Samuel Ortiz
Hi Dave, irlan_client_discovery_indication calls rcu_read_lock and rcu_read_unlock, but returns without unlocking in an error case. Fix that by replacing the return with a goto so that the rcu_read_unlock always gets executed. Signed-off-by: Josh Triplett <[EMAIL PROTECTED]> Acked-by: Paul E. Mc