From 089e607e3af877fd69ed22dc9348af857ae68986 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Sun, 29 Sep 2002 18:25:11 +0000 Subject: unlock bridge lock when brouting, --- kernel/linux2.5/net/bridge/br_input.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'kernel/linux2.5/net/bridge') diff --git a/kernel/linux2.5/net/bridge/br_input.c b/kernel/linux2.5/net/bridge/br_input.c index d3956cd..b551775 100644 --- a/kernel/linux2.5/net/bridge/br_input.c +++ b/kernel/linux2.5/net/bridge/br_input.c @@ -5,7 +5,7 @@ * Authors: * Lennert Buytenhek * - * $Id: br_input.c,v 1.3 2002/09/16 19:45:51 bdschuym Exp $ + * $Id: br_input.c,v 1.4 2002/09/29 18:25:11 bdschuym Exp $ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -149,8 +149,10 @@ int br_handle_frame(struct sk_buff *skb) goto handle_special_frame; if (p->state == BR_STATE_FORWARDING) { - if (br_should_route_hook && br_should_route_hook(&skb)) + if (br_should_route_hook && br_should_route_hook(&skb)) { + read_unlock(&br->lock); return -1; + } NF_HOOK(PF_BRIDGE, NF_BR_PRE_ROUTING, skb, skb->dev, NULL, br_handle_frame_finish); -- cgit v1.2.3