diff options
| author | Patrick McHardy <kaber@trash.net> | 2007-12-05 12:28:30 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2008-01-29 01:56:18 +0300 |
| commit | a3c8e7fd4b36bf6e12fef432cfa8a001dc0b7a26 (patch) | |
| tree | 59ce4404b88b5b20bd7a6e344d3b3dc77c81ad9e /include/linux/workqueue.h | |
| parent | e48b9b2fb383879a5d758d526b5eb8de4509f467 (diff) | |
| download | linux-a3c8e7fd4b36bf6e12fef432cfa8a001dc0b7a26.tar.xz | |
[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 <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions
