[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190729.105912.372124003186607133.davem@davemloft.net>
Date: Mon, 29 Jul 2019 10:59:12 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: colin.king@...onical.com
Cc: dsahern@...il.com, jiri@...nulli.us, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rocker: fix memory leaks of fib_work on two error
return paths
From: Colin King <colin.king@...onical.com>
Date: Sun, 28 Jul 2019 00:37:26 +0100
> From: Colin Ian King <colin.king@...onical.com>
>
> 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@...onical.com>
Applied.
Powered by blists - more mailing lists