Thread (105 messages) 105 messages, 13 authors, 2008-11-24

Re: [PATCH 1/2] udp: introduce struct udp_table and multiple rwlocks

From: Evgeniy Polyakov <hidden>
Date: 2008-10-28 21:31:20

On Tue, Oct 28, 2008 at 02:23:55PM -0700, Christian Bell (christian@myri.com) wrote:
quoted
+	} else {
+		hslot = &udptable->hash[udp_hashfn(net, snum)];
+		write_lock_bh(&hslot->lock);
+		if (udp_lib_lport_inuse(net, snum, hslot, sk, saddr_comp))
+			goto fail;
The fail: label below should still unlock_bh when the above condition  
fails.
This should be new label actually, since it is also used for non-locked
fail.

-- 
	Evgeniy Polyakov
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help