Re: [PATCH] drm: sti: fix device leaks at component probe

From: Markus Elfring

Date: Mon Sep 22 2025 - 12:17:04 EST


> Make sure to drop the references taken to the vtg devices by

VTG device?


> of_find_device_by_node() when looking up their driver data during
> component probe.


How do you think about to increase the application of scope-based resource management?
https://elixir.bootlin.com/linux/v6.17-rc7/source/include/linux/device.h#L1180

Can a summary phrase like “Prevent device leak in of_vtg_find()” be nicer?

Regards,
Markus