[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sat, 09 Sep 2017 14:34:17 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: subashab@...eaurora.org, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH v2 net] net: qualcomm: rmnet: Fix a double free
From: Dan Carpenter <dan.carpenter@...cle.com>
Date: Sat, 9 Sep 2017 11:58:03 +0300
> There is a typo here so we accidentally free "skb" instead of "skbn".
> It leads to a double free and a leak. After discussing with Subash,
> it's better to just move the check before the allocation and avoid the
> need to free.
>
> Fixes: ceed73a2cf4a ("drivers: net: ethernet: qualcomm: rmnet: Initial implementation")
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
> ---
> v2: Fix the leak as well. Thanks Subash!
Applied, thanks Dan.
Powered by blists - more mailing lists