Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1758ee0e authored by Harald Welte's avatar Harald Welte Committed by Arnaldo Carvalho de Melo
Browse files

[NETFILTER] nf_queue: Fix Ooops when no queue handler registered



With the new nf_queue generalization in 2.6.14, we've introduced a bug
that causes an oops as soon as a packet is queued but no queue handler
registered.  This patch fixes it.

Signed-off-by: default avatarHarald Welte <laforge@netfilter.org>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@mandriva.com>
parent 433a4d3b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ int nf_queue(struct sk_buff **skb,

	/* QUEUE == DROP if noone is waiting, to be safe. */
	read_lock(&queue_handler_lock);
	if (!queue_handler[pf]->outfn) {
	if (!queue_handler[pf] || !queue_handler[pf]->outfn) {
		read_unlock(&queue_handler_lock);
		kfree_skb(*skb);
		return 1;