From: Patrick McHardy Date: Wed, 5 Dec 2007 09:28:30 +0000 (-0800) Subject: [NETFILTER]: nfnetlink_queue: fix checks in nfqnl_recv_config X-Git-Tag: v2.6.25-rc1~1162^2~1231 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3c8e7fd4b36bf6e12fef432cfa8a001dc0b7a26;p=pandora-kernel.git [NETFILTER]: nfnetlink_queue: fix checks in nfqnl_recv_config The peer_pid must be checked in all cases when a queue exists, currently it is not checked if for NFQA_CFG_QUEUE_MAXLEN when a NFQA_CFG_CMD attribute exists in some cases. Same for the queue existance check, which can cause a NULL pointer dereference. Also consistently return -ENODEV for "queue not found". -ENOENT would be better, but that is already used to indicate a queued skb id doesn't exist. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed