kernel_samsung_a53x/drivers/net/ethernet/qlogic
Asbjørn Sloth Tønnesen 264a97baaa net: qede: sanitize 'rc' in qede_add_tc_flower_fltr()
[ Upstream commit e25714466abd9d96901b15efddf82c60a38abd86 ]

Explicitly set 'rc' (return code), before jumping to the
unlock and return path.

By not having any code depend on that 'rc' remains at
it's initial value of -EINVAL, then we can re-use 'rc' for
the return code of function calls in subsequent patches.

Only compile tested.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: fcee2065a178 ("net: qede: use return from qede_parse_flow_attr() for flower")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 11:32:42 +01:00
..
netxen net: vlan: introduce skb_vlan_eth_hdr() 2024-11-18 12:11:48 +01:00
qed qed: Fix a potential use-after-free in qed_cxt_tables_alloc 2024-11-18 12:11:49 +01:00
qede net: qede: sanitize 'rc' in qede_add_tc_flower_fltr() 2024-11-19 11:32:42 +01:00
qlcnic net: vlan: introduce skb_vlan_eth_hdr() 2024-11-18 12:11:48 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qla3xxx.c net/qla3xxx: fix potential memleak in ql_alloc_buffer_queues 2024-11-18 12:12:07 +01:00
qla3xxx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00