diff options
| author | Harshit Mogalapalli <[email protected]> | 2024-10-10 11:18:18 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2024-10-10 19:12:59 +0000 |
| commit | 4575962aeed63aca975756852ab0c550164f849f (patch) | |
| tree | 6cea06bcc1a5f1b5502de18445163c67a9fa6af3 /rust/macros/module.rs | |
| parent | Merge tag 'intel-pinctrl-v6.12-2' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
| download | kernel-4575962aeed63aca975756852ab0c550164f849f.tar.gz kernel-4575962aeed63aca975756852ab0c550164f849f.zip | |
pinctrl: sophgo: fix double free in cv1800_pctrl_dt_node_to_map()
'map' is allocated using devm_* which takes care of freeing the allocated
data, but in error paths there is a call to pinctrl_utils_free_map()
which also does kfree(map) which leads to a double free.
Use kcalloc() instead of devm_kcalloc() as freeing is manually handled.
Fixes: a29d8e93e710 ("pinctrl: sophgo: add support for CV1800B SoC")
Signed-off-by: Harshit Mogalapalli <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'rust/macros/module.rs')
0 files changed, 0 insertions, 0 deletions
