diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-04-20 18:55:55 +0800 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-04-28 11:42:09 +0200 |
| commit | 352f5621b8c472bf328f452446bce85c00837223 (patch) | |
| tree | 7709778e259d43c7549e43e973bbd819a844c078 /include/linux/debugobjects.h | |
| parent | 4f5b1f4e770b959dfef196f0e00297043b03cf72 (diff) | |
pinctrl: pinconf-generic: fix properties bitmap leak in parse_fw_cfg()
In parse_fw_cfg(), if fwnode_property_match_property_string() fails with
-ENOENT, the code returns directly and leaks the bitmap.
Use __free(bitmap) for automatic cleanup to fix the leak.
Fixes: 9c105255108b ("pinctrl: pinconf-generic: perform basic checks on pincfg properties")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
