]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: nft_parse_register can return a negative value
authorAntoine Tenart <atenart@kernel.org>
Tue, 12 Apr 2022 08:14:59 +0000 (10:14 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 12 Apr 2022 09:36:37 +0000 (11:36 +0200)
commit6d44556d991a3c0cdb9db1e13ac6170038e99081
tree0d74dcbb3450376fd4b7831a296c643578625c7e
parent9aab4c3a961811c9c27f6a089bc3d80a4d6fbcb1
netfilter: nf_tables: nft_parse_register can return a negative value

Since commit bfcfe6b3cdd4 ("netfilter: nf_tables: validate registers
coming from userspace.") nft_parse_register can return a negative value,
but the function prototype is still returning an unsigned int.

Fixes: bfcfe6b3cdd4 ("netfilter: nf_tables: validate registers coming from userspace.")
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c