]> 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)
commitb55f9e55e44b758f15c4c7fceb9132ae6fce3c78
tree023d053dc015873ad17e6db1bdee08a190c4bba3
parentb38e4c7ee7f243dd289a6dc5bfcbf3b56f39af98
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: 52b355125256 ("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