[PATCH] soc: samsung: exynos-pmu: fix reference count leak in exynos_get_pmu_regmap_by_phandle
林妙倩
linmq006 at gmail.com
Tue Oct 28 02:53:02 PDT 2025
Hi, Krzysztof
Thanks for your review.
Krzysztof Kozlowski <krzk at kernel.org> 于2025年10月28日周二 16:42写道:
>
> On 28/10/2025 04:15, Miaoqian Lin wrote:
> > The driver_find_device_by_of_node() function calls driver_find_device
> > and returns a device with its reference count incremented.
> > Add the missing put_device() call to
> > release this reference after the device is used.
> >
> > Found via static analysis.
>
> What static analysis? You must name the tool.
>
I use weggli (AST pattern search) followed by manual review.
> Anyway, same comments as before.
>
> https://lore.kernel.org/all/?q=dfn%3Adrivers%2Fsoc%2Fsamsung%2Fexynos-pmu.c
Got it, thanks.
>
> Best regards,
> Krzysztof
More information about the linux-arm-kernel
mailing list