diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nfnetlink_queue.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index 82e4454659bf..a88a017da22c 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c | |||
@@ -947,6 +947,14 @@ nfqnl_recv_config(struct sock *ctnl, struct sk_buff *skb, | |||
947 | ntohl(params->copy_range)); | 947 | ntohl(params->copy_range)); |
948 | } | 948 | } |
949 | 949 | ||
950 | if (nfqa[NFQA_CFG_QUEUE_MAXLEN-1]) { | ||
951 | __be32 *queue_maxlen; | ||
952 | queue_maxlen = NFA_DATA(nfqa[NFQA_CFG_QUEUE_MAXLEN-1]); | ||
953 | spin_lock_bh(&queue->lock); | ||
954 | queue->queue_maxlen = ntohl(*queue_maxlen); | ||
955 | spin_unlock_bh(&queue->lock); | ||
956 | } | ||
957 | |||
950 | out_put: | 958 | out_put: |
951 | instance_put(queue); | 959 | instance_put(queue); |
952 | return ret; | 960 | return ret; |