Re: [PATCH] drm/bridge: properly refcount DT nodes in aux bridge drivers

2023-12-18 Thread Neil Armstrong
On 17/12/2023 00:59, Dmitry Baryshkov wrote: The aux-bridge and aux-hpd-bridge drivers didn't call of_node_get() on the device nodes further used for dev->of_node and platform data. When bridge devices are released, the reference counts are decreased, resulting in refcount underflow /

[PATCH] drm/bridge: properly refcount DT nodes in aux bridge drivers

2023-12-16 Thread Dmitry Baryshkov
The aux-bridge and aux-hpd-bridge drivers didn't call of_node_get() on the device nodes further used for dev->of_node and platform data. When bridge devices are released, the reference counts are decreased, resulting in refcount underflow / use-after-free warnings. Get corresponding refcounts