]> git.dujemihanovic.xyz Git - linux.git/commit
net: qede: sanitize 'rc' in qede_add_tc_flower_fltr()
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Fri, 26 Apr 2024 09:12:23 +0000 (09:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2024 09:02:43 +0000 (10:02 +0100)
commite25714466abd9d96901b15efddf82c60a38abd86
tree74853548f48dbc7d522ca5f6ec24c328dc921c27
parent16f50301a804a4b86c75fdd0dfb50ec263ed41b1
net: qede: sanitize 'rc' in qede_add_tc_flower_fltr()

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>
drivers/net/ethernet/qlogic/qede/qede_filter.c