diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-16 17:40:58 +0000 |
|---|---|---|
| committer | Chun-Kuang Hu <chunkuang.hu@kernel.org> | 2026-10-01 22:40:43 +0000 |
| commit | 3753e34b73fcbe2a2edbe984614a008a261697ef (patch) | |
| tree | 97b7cbb515e78c0194e6ddea0aa86135092183ed /include/asm-generic/bug.h | |
| parent | 3e292c56bf5e338efcda7f9bfa603180855cd1be (diff) | |
| download | linux-stable-3753e34b73fcbe2a2edbe984614a008a261697ef.tar.gz linux-stable-3753e34b73fcbe2a2edbe984614a008a261697ef.zip | |
drm/mediatek: Fix pdev reference leak in mtk_drm_bind()
When the device is not the mmsys master, mtk_drm_bind() returns early
after taking a reference on the disp-mutex device via
of_find_device_by_node(), without ever dropping it: mtk_drm_unbind()
only puts mutex_dev for the master. Drop the reference before returning
from the non-master path.
Fixes: 1ef7ed48356c ("drm/mediatek: Modify mediatek-drm for mt8195 multi mmsys support")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20260916174058.2088709-1-vulab@iscas.ac.cn/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Diffstat (limited to 'include/asm-generic/bug.h')
0 files changed, 0 insertions, 0 deletions
