Commit d8e4771
mtd: rawnand: fix double free in atmel_pmecc_create_user()
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: 6d734f1 ("mtd: rawnand: atmel: Fix possible memory leak")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>1 parent 40384c8 commit d8e4771
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
384 | | - | |
| 383 | + | |
385 | 384 | | |
386 | | - | |
387 | 385 | | |
388 | 386 | | |
389 | 387 | | |
| |||
0 commit comments