Thread (3 messages) 3 messages, 2 authors, 2024-12-05

Re: [PATCH next] mtd: rawnand: fix double free in atmel_pmecc_create_user()

From: Miquel Raynal <miquel.raynal@bootlin.com>
Date: 2024-10-23 09:49:33
Also in: kernel-janitors, lkml

Hi Dan,

dan.carpenter@linaro.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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help