netfilter: nf_flow_table: fix missing error check for rhashtable_insert_fast
authorTaehee Yoo <ap420073@gmail.com>
Thu, 2 May 2019 16:56:38 +0000 (01:56 +0900)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 5 May 2019 22:36:30 +0000 (00:36 +0200)
commit43c8f131184faf20c07221f3e09724611c6525d8
treef4fc0660fd0fbdb891bfaf503fe23003cb873136
parentedbd82c5fba009f68d20b5db585be1e667c605f6
netfilter: nf_flow_table: fix missing error check for rhashtable_insert_fast

rhashtable_insert_fast() may return an error value when memory
allocation fails, but flow_offload_add() does not check for errors.
This patch just adds missing error checking.

Fixes: ac2a66665e23 ("netfilter: add generic flow table infrastructure")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_core.c