rtnetlink: Fix missing error code in rtnl_bridge_notify()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 2 Jun 2021 10:15:04 +0000 (18:15 +0800)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:48:13 +0000 (08:48 -0400)
commit7e0147403ebae2fc60b1657114058d20e874a89a
tree30bb7500cf04425508a785d9c748866be1e7a1d3
parent51c0007f4c6b88f22c2a5bfb099d7654f0db973c
rtnetlink: Fix missing error code in rtnl_bridge_notify()

[ Upstream commit a8db57c1d285c758adc7fb43d6e2bad2554106e1 ]

The error code is missing in this code scenario, add the error code
'-EINVAL' to the return value 'err'.

Eliminate the follow smatch warning:

net/core/rtnetlink.c:4834 rtnl_bridge_notify() warn: missing error code
'err'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/rtnetlink.c