diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-07-28 00:37:26 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-29 10:58:06 -0700 |
commit | 011f175428d46461f94a65dacb9a416529d08dda (patch) | |
tree | e857de740761dbed23dc6c188ccc073cae742ebd /tools/debugging | |
parent | 195b2919ccd7ffcaf6b6bbcb39444a53ab8308c7 (diff) | |
download | linux-011f175428d46461f94a65dacb9a416529d08dda.tar.bz2 |
rocker: fix memory leaks of fib_work on two error return paths
Currently there are two error return paths that leak memory allocated
to fib_work. Fix this by kfree'ing fib_work before returning.
Addresses-Coverity: ("Resource leak")
Fixes: 19a9d136f198 ("ipv4: Flag fib_info with a fib_nh using IPv6 gateway")
Fixes: dbcc4fa718ee ("rocker: Fail attempts to use routes with nexthop objects")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/debugging')
0 files changed, 0 insertions, 0 deletions