netfilter: flowtable: add a 'default' case to flowtable datapath
authorLi Qiong <liqiong@nfschina.com>
Tue, 6 Dec 2022 07:44:14 +0000 (15:44 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 8 Dec 2022 21:11:00 +0000 (22:11 +0100)
commit895fa59647cd64da99eebd1199cf27ecce08c17c
tree6ae51e5b5c90d528396747b37c8f7218abac2ca9
parent7d7cfb48d81353e826493d24c7cec7360950968f
netfilter: flowtable: add a 'default' case to flowtable datapath

Add a 'default' case in case return a uninitialized value of ret, this
should not ever happen since the follow transmit path types:

- FLOW_OFFLOAD_XMIT_UNSPEC
- FLOW_OFFLOAD_XMIT_TC

are never observed from this path. Add this check for safety reasons.

Signed-off-by: Li Qiong <liqiong@nfschina.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_flow_table_ip.c