summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorLucas Costa <2000.costalucas@gmail.com>2026-09-25 16:30:08 -0300
committerMark Brown <broonie@kernel.org>2026-09-28 18:04:58 +0100
commit8db44cca03df066186d6220bfad9fa482d7cdc13 (patch)
treed6aa77404a880a7e9a985b70c90eea43ea92430b /scripts/Makefile.thinlto
parent7b85114d47f693b709b2e8e22e44cdf58c04b111 (diff)
downloadlinux-8db44cca03df066186d6220bfad9fa482d7cdc13.tar.gz
linux-8db44cca03df066186d6220bfad9fa482d7cdc13.zip
spi: bcm2835: fix device_node reference leak in bcm2835_spi_setup()
of_find_compatible_node() returns a device_node with its reference count incremented, but bcm2835_spi_setup() only uses the return value to test for a matching node in the loop and never releases it. Declare the node with a scope-based __free(device_node) cleanup so the reference is dropped automatically when leaving the loop body, matching the existing __free(kfree) usage in the same function. Fixes: e19c1272c80a ("spi: bcm2835: Restore native CS probing when pinctrl-bcm2835 is absent") Cc: stable@vger.kernel.org Signed-off-by: Lucas Costa <2000.costalucas@gmail.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Link: https://patch.msgid.link/20260925193008.127314-1-2000.costalucas@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions