commit | 83300c69e797343c560086b1a4be56443c0d7f5e | [log] [tgz] |
---|---|---|
author | Yang Yingliang <yangyingliang@huawei.com> | Sat Jun 26 12:44:20 2021 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Jun 28 14:20:23 2021 -0700 |
tree | 7d8f76825cc9361a0c55ca87288120240d706b33 | |
parent | 8f4c38f7588650690ffa08f7784c831e0a8c38e7 [diff] |
net: sparx5: fix error return code in sparx5_register_notifier_blocks() Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: d6fce5141929 ("net: sparx5: add switching support") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>