[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180923172024.GC2203@nanopsycho>
Date: Sun, 23 Sep 2018 19:20:24 +0200
From: Jiri Pirko <jiri@...nulli.us>
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Jiri Pirko <jiri@...lanox.com>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net] devlink: double free in devlink_resource_fill()
Fri, Sep 21, 2018 at 10:07:55AM CEST, dan.carpenter@...cle.com wrote:
>Smatch reports that devlink_dpipe_send_and_alloc_skb() frees the skb
>on error so this is a double free. We fixed a bunch of these bugs in
>commit 7fe4d6dcbcb4 ("devlink: Remove redundant free on error path") but
>we accidentally overlooked this one.
>
>Fixes: d9f9b9a4d05f ("devlink: Add support for resource abstraction")
>Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Acked-by: Jiri Pirko <jiri@...lanox.com>
Powered by blists - more mailing lists