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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:43:17 +0000 (14:43 -0700)
commit5e51f797611ef276603e7070fc4c39b5a43ddb21
tree312e00b336b4bce71a018658b7f713b29ee8965d
parent16e6df022b41901165f67c30f807074fd6c4507b
netfilter: nf_tables: Use 32 bit addressing register from nft_type_to_reg()

commit bf798657eb5ba57552096843c315f096fdf9b715 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/netfilter/nf_tables.h