summaryrefslogtreecommitdiffstats
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorRounak Das <rounakdas2025@gmail.com>2026-09-26 17:38:46 +0530
committerBorislav Petkov (AMD) <bp@alien8.de>2026-09-26 11:17:40 -0700
commit7d5a36a5490d496e17823085fbe7ec6c0a7bf43d (patch)
treef4e7f2b288d366de6102b91512bbb0b31c881432 /scripts/const_structs.checkpatch
parenteef3b67f9c6782127163b631c9043011a68016e2 (diff)
downloadlinux-stable-7d5a36a5490d496e17823085fbe7ec6c0a7bf43d.tar.gz
linux-stable-7d5a36a5490d496e17823085fbe7ec6c0a7bf43d.zip
EDAC/altera: Fix device node reference leaks in the SDMMC ECC setup
Under altr_portb_setup() and socfpga_init_sdmmc_ecc(), of_find_compatible_node() was being used to look up the sdmmc-ecc node. This node wasn't being dropped using of_node_put(). altr_portb_setup() did not drop its reference under its success path or on any error path. socfpga_init_sdmmc_ecc() did an early return thereby skipping the common exit label and thus leaking the reference. Add the missing of_node_put() calls in altr_portb_setup(), and route socfpga_init_sdmmc_ecc()'s success path through the common exit label. Fixes: 911049845d70 ("EDAC, altera: Add Arria10 SD-MMC EDAC support") Fixes: 788586efd116 ("EDAC/altera: Initialize peripheral FIFOs in probe()") Closes: https://sashiko.dev/#/patchset/20260708091135.94114-1-rounakdas2025%40gmail.com Signed-off-by: Rounak Das <rounakdas2025@gmail.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Dinh Nguyen <dinguyen@kernel.org> Cc: stable@vger.kernel.org # 6.18+ Link: https://patch.msgid.link/20260926120846.35716-1-rounakdas2025@gmail.com
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions