diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-12-06 13:32:52 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-08 03:25:09 +0100 |
commit | 09310cfd4ea5c3ab2c7a610420205e0a1660bf7e (patch) | |
tree | 41fde3ad17dfd5b8d7867505b4bb5b4cfbcce8c8 /net/core/dst.c | |
parent | Merge branch 'ocelot-ptp-fixes' (diff) | |
download | linux-09310cfd4ea5c3ab2c7a610420205e0a1660bf7e.tar.xz linux-09310cfd4ea5c3ab2c7a610420205e0a1660bf7e.zip |
rtnetlink: fix error code in rtnl_newlink()
If rtnl_get_peer_net() fails, then propagate the error code. Don't
return success.
Fixes: 48327566769a ("rtnetlink: fix double call of rtnl_link_get_net_ifla()")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/a2d20cd4-387a-4475-887c-bb7d0e88e25a@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/dst.c')
0 files changed, 0 insertions, 0 deletions