summaryrefslogtreecommitdiffstats
path: root/include/Kbuild
diff options
context:
space:
mode:
authorGuangshuo Li <lgs201920130244@gmail.com>2026-09-21 21:11:56 +0800
committerChun-Kuang Hu <chunkuang.hu@kernel.org>2026-10-01 23:06:43 +0000
commit048739be3e9cacae5301b68245668002fe6f0ce5 (patch)
tree73b3e95af1cce3418325b4cda23836ba16e281cf /include/Kbuild
parent2af45da333bdd7be2666688a0f861e0750e40e49 (diff)
downloadlinux-stable-048739be3e9cacae5301b68245668002fe6f0ce5.tar.gz
linux-stable-048739be3e9cacae5301b68245668002fe6f0ce5.zip
drm/mediatek: Fix ovl adaptor platform device leak
mtk_drm_probe() creates an OVL adaptor platform device with platform_device_register_data() when the display pipeline requires the OVL adaptor. If a later initialization step fails, the probe error path releases the DRM resources without unregistering the already registered OVL adaptor device. The normal remove path likewise leaves the device registered after the DRM driver is unbound. Keep track of whether the OVL adaptor was successfully registered and unregister it on probe failure. Also recover the platform device from the stored DDP component device and unregister it during normal removal. The issue was identified by a static analysis tool I developed and confirmed by manual review. Fixes: 0d9eee9118b7 ("drm/mediatek: Add drm ovl_adaptor sub driver for MT8195") Cc: stable@vger.kernel.org Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com> Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20260921131156.403652-1-lgs201920130244@gmail.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Diffstat (limited to 'include/Kbuild')
0 files changed, 0 insertions, 0 deletions