diff options
author | Ziyang Xuan <william.xuanziyang@huawei.com> | 2022-11-20 15:28:38 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-22 20:18:20 -0800 |
commit | 568fe84940ac0e4e0b2cd7751b8b4911f7b9c215 (patch) | |
tree | ce5f694508e4915827740a6258d649c5312a2dcd /include | |
parent | dddf26dfd07a5dcb59cec0a6a7a8b7e12fcc7776 (diff) | |
download | linux-568fe84940ac0e4e0b2cd7751b8b4911f7b9c215.tar.gz |
ipv4: Fix error return code in fib_table_insert()
In fib_table_insert(), if the alias was already inserted, but node not
exist, the error code should be set before return from error handling path.
Fixes: a6c76c17df02 ("ipv4: Notify route after insertion to the routing table")
Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com>
Link: https://lore.kernel.org/r/20221120072838.2167047-1-william.xuanziyang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions