]> git.karo-electronics.de Git - linux-beck.git/commit
netfilter: nf_tables: Use 32 bit addressing register from nft_type_to_reg()
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 12 Aug 2015 15:41:00 +0000 (17:41 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 19 Aug 2015 19:21:41 +0000 (21:21 +0200)
commitbf798657eb5ba57552096843c315f096fdf9b715
tree61238c85e128ab3d010113f01182d7fbcbf01b86
parentfd7dec25a18f495e50d2040398fd263836ff3b28
netfilter: nf_tables: Use 32 bit addressing register from nft_type_to_reg()

nft_type_to_reg() needs to return the register in the new 32 bit addressing,
otherwise we hit EINVAL when using mappings.

Fixes: 49499c3 ("netfilter: nf_tables: switch registers to 32 bit addressing")
Reported-by: Andreas Schultz <aschultz@tpip.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h