summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Gu <ustc.gu@gmail.com>2026-01-30 20:49:09 +0300
committerConor Dooley <conor.dooley@microchip.com>2026-02-06 22:54:40 +0300
commit0528a348b04b327a4611e29589beb4c9ae81304a (patch)
tree6ae41bd724ce0b297664b01c3cab1d14ce73e568 /scripts
parent3c85234b979af71cb9db5eb976ea08a468415767 (diff)
downloadlinux-0528a348b04b327a4611e29589beb4c9ae81304a.tar.xz
cache: ax45mp: Fix device node reference leak in ax45mp_cache_init()
In ax45mp_cache_init(), of_find_matching_node() returns a device node with an incremented reference count that must be released with of_node_put(). The current code fails to call of_node_put() which causes a reference leak. Use the __free(device_node) attribute to ensure automatic cleanup when the variable goes out of scope. Fixes: d34599bcd2e4 ("cache: Add L2 cache management for Andes AX45MP RISC-V core") Signed-off-by: Felix Gu <ustc.gu@gmail.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions