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:47 +0000 (08:48 -0400)
commit908e53138e71d1719416565d555684d387baa096
tree0e637a27ab356ccf79164a04fad23c517a8c4e82
parentc97aafab4bfab12493b3eed6a3e0c74519bdd21b
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