diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-09-09 15:35:21 -0700 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-09-25 15:29:25 +0200 |
| commit | 5e73728a875a91fb2c7dc527f7391da0205f85b1 (patch) | |
| tree | c20616b71b898d9aebcd57871e362852032a332b /scripts/checkstack.pl | |
| parent | 7e874b1750a40f3dc9a629aeb72eba09c77f77e9 (diff) | |
mtd: rawnand: ndfc: use devm_kasprintf for mtd name
Convert the mtd->name allocation from kasprintf() plus a manual kfree()
in the error path and in ndfc_remove() to the managed
devm_kasprintf() helper. The name is now released automatically with
the device, removing the need for explicit cleanup.
Assisted-by: opencode:hy3-free
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions
