]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: check for NULL in nf_tables_newchain pcpu stats allocation
authorSabrina Dubroca <sd@queasysnail.net>
Tue, 21 Oct 2014 09:08:21 +0000 (11:08 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Oct 2014 12:12:51 +0000 (14:12 +0200)
commita89fcfb14d6b90bcf8071ff0347a9b632fd9a813
tree023d053dc015873ad17e6db1bdee08a190c4bba3
parent50ed71e3cfb2b1194d5a295fad2d0729c1bd354c
netfilter: nf_tables: check for NULL in nf_tables_newchain pcpu stats allocation

alloc_percpu returns NULL on failure, not a negative error code.

Fixes: 0fae0ede6cfe ("netfilter: nf_tables: refactor chain statistic routines")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c