[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241023114923.18e8e1b2@xps-13>
Date: Wed, 23 Oct 2024 11:49:23 +0200
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Dan Carpenter <dan.carpenter@...aro.org>
Cc: Richard Weinberger <richard@....at>, Vignesh Raghavendra
<vigneshr@...com>, Nicolas Ferre <nicolas.ferre@...rochip.com>, Alexandre
Belloni <alexandre.belloni@...tlin.com>, Claudiu Beznea
<claudiu.beznea@...on.dev>, linux-mtd@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH next] mtd: rawnand: fix double free in
atmel_pmecc_create_user()
Hi Dan,
dan.carpenter@...aro.org wrote on Wed, 23 Oct 2024 11:40:56 +0300:
> The "user" pointer was converted from being allocated with kzalloc() to
> being allocated by devm_kzalloc(). Calling kfree(user) will lead to a
> double free.
>
> Fixes: 6d734f1bfc33 ("mtd: rawnand: atmel: Fix possible memory leak")
Hm, I missed it. Thanks for the fix!
Thanks,
Miquèl
Powered by blists - more mailing lists