aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorMarilene A Garcia <[email protected]>2024-06-10 21:17:40 -0300
committerLee Jones <[email protected]>2024-06-26 16:56:09 +0100
commit8d89afc6359c228c51087d90a4a72af2ea95140c (patch)
treeff293dceb1106ac87b909005534d814bee695ed1 /lib/memory-notifier-error-inject.c
parent7e776e21255bf4c271e0df0a7d289a4963580e61 (diff)
leds: tlc591xx: Replace of_node_put to __free
Use __free() for device_node values, and thus drop calls to of_node_put(). The variable attribute __free() adds a scope based cleanup to the device node. The goal is to reduce memory management issues in the kernel code. The for_each_available_child_of_node() was replaced to the equivalent for_each_available_child_of_node_scoped() which uses the __free(). Suggested-by: Julia Lawall <[email protected]> Signed-off-by: Marilene A Garcia <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions