netfilter: nft_compat: narrow down revision to unsigned 8-bits
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 1 Feb 2024 21:58:36 +0000 (22:58 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 7 Feb 2024 21:02:51 +0000 (22:02 +0100)
commit36fa8d697132b4bed2312d700310e8a78b000c84
tree506b41e511adb08633a432d3218646848ab0ff64
parenteef00a82c568944f113f2de738156ac591bbd5cd
netfilter: nft_compat: narrow down revision to unsigned 8-bits

xt_find_revision() expects u8, restrict it to this datatype.

Fixes: 0ca743a55991 ("netfilter: nf_tables: add compatibility layer for x_tables")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_compat.c