aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/xilinx-spi.c
diff options
context:
space:
mode:
authorJoe Hattori <[email protected]>2024-12-15 03:01:59 +0000
committerUlf Hansson <[email protected]>2024-12-19 14:26:37 +0000
commit469c0682e03d67d8dc970ecaa70c2d753057c7c0 (patch)
tree7b83424dbfdbd0d2a1804b94c03ec7aa5aa03846 /drivers/fpga/xilinx-spi.c
parentLinux 6.13-rc2 (diff)
downloadkernel-469c0682e03d67d8dc970ecaa70c2d753057c7c0.tar.gz
kernel-469c0682e03d67d8dc970ecaa70c2d753057c7c0.zip
pmdomain: imx: gpcv2: fix an OF node reference leak in imx_gpcv2_probe()
imx_gpcv2_probe() leaks an OF node reference obtained by of_get_child_by_name(). Fix it by declaring the device node with the __free(device_node) cleanup construct. This bug was found by an experimental static analysis tool that I am developing. Fixes: 03aa12629fc4 ("soc: imx: Add GPCv2 power gating driver") Signed-off-by: Joe Hattori <[email protected]> Cc: [email protected] Message-ID: <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions