Re: [PATCH] dmaengine: mv_xor: use for_each_child_of_node_scoped to avoid reference leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16/12/2024 05:31, Joe Hattori wrote:
> Current implementation of mv_xor_probe() leaks OF node references
> obtained in for_each_child_of_node. Avoid this by switching to
> for_each_child_of_node_scoped.
> 
> This bug was found by an experimental static analysis tool that I am
> developing.
> 
> Fixes: f7d12ef53ddf ("dma: mv_xor: add Device Tree binding")
> Signed-off-by: Joe Hattori <joe@xxxxxxxxxxxxxxxxxxxxx>

Looks like re-doing:
https://lore.kernel.org/all/20241011-dma_mv_xor_of_node_put-v1-2-3c2de819f463@xxxxxxxxx/


Best regards,
Krzysztof




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux