netfilter: nf_tables: correct NFT_LOGLEVEL_MAX value
authorFlorian Westphal <fw@strlen.de>
Sun, 12 May 2019 18:42:37 +0000 (20:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:48 +0000 (14:50 +0100)
[ Upstream commit 92285a079eedfe104a773a7c4293f77a01f456fb ]

should be same as NFT_LOGLEVEL_AUDIT, so use -, not +.

Fixes: 7eced5ab5a73 ("netfilter: nf_tables: add NFT_LOGLEVEL_* enumeration and use it")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/uapi/linux/netfilter/nf_tables.h

index 325ec6e..5eac62e 100644 (file)
@@ -1128,7 +1128,7 @@ enum nft_log_level {
        NFT_LOGLEVEL_AUDIT,
        __NFT_LOGLEVEL_MAX
 };
-#define NFT_LOGLEVEL_MAX       (__NFT_LOGLEVEL_MAX + 1)
+#define NFT_LOGLEVEL_MAX       (__NFT_LOGLEVEL_MAX - 1)
 
 /**
  * enum nft_queue_attributes - nf_tables queue expression netlink attributes