[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 750943e..5493180 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);
 }