[NETFILTER]: Fix deadlock in ip6_queue
authorPatrick McHardy <kaber@trash.net>
Fri, 22 Jul 2005 19:49:30 +0000 (12:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jul 2005 19:49:30 +0000 (12:49 -0700)
Already fixed in ip_queue, ip6_queue was missed.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/netfilter/ip6_queue.c

index 750943e2d34eed262fe1ccc5d9f276d2ed2fc832..5493180f0d441200675a5ecd0406617e5a7d7cf5 100644 (file)
@@ -76,7 +76,9 @@ static DECLARE_MUTEX(ipqnl_sem);
 static void
 ipq_issue_verdict(struct ipq_queue_entry *entry, int verdict)
 {
+       local_bh_disable();
        nf_reinject(entry->skb, entry->info, verdict);
+       local_bh_enable();
        kfree(entry);
 }