]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbbbf67e20c9839904cf399355955485e8543f1cb
treef4fc0660fd0fbdb891bfaf503fe23003cb873136
parent795a170ebba0f30be2611004b2270e0f35b5d7e4
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: e703bec55269 ("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