]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
netfilter: nft_counter: fix erroneous return values
authorAnton Protopopov <a.s.protopopov@gmail.com>
Sun, 7 Feb 2016 04:31:19 +0000 (23:31 -0500)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Feb 2016 12:05:02 +0000 (13:05 +0100)
commit5cc6ce9ff27565949a1001a2889a8dd9fd09e772
treed79edaa806b1799a965ae2c72b4c6bee4b48ab80
parent08a7f5d3f5c38ed745c3e99ee91975f20562d272
netfilter: nft_counter: fix erroneous return values

The nft_counter_init() and nft_counter_clone() functions should return
negative error value -ENOMEM instead of positive ENOMEM.

Signed-off-by: Anton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_counter.c