aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/mm.py
diff options
context:
space:
mode:
authorNĂ­colas F. R. A. Prado <[email protected]>2022-11-22 09:39:49 -0500
committerChun-Kuang Hu <[email protected]>2023-01-27 15:06:53 +0000
commit36aa8c61af55675ed967900fbe5deb32d776f051 (patch)
treef6e3b6069f5ee7ca602e9674c152af9356bdfc3b /scripts/gdb/linux/mm.py
parent5bf1e3bd7da625ccf9a22c8cb7d65271e6e47f4c (diff)
drm/mediatek: Clean dangling pointer on bind error path
mtk_drm_bind() can fail, in which case drm_dev_put() is called, destroying the drm_device object. However a pointer to it was still being held in the private object, and that pointer would be passed along to DRM in mtk_drm_sys_prepare() if a suspend were triggered at that point, resulting in a panic. Clean the pointer when destroying the object in the error path to prevent this from happening. Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.") Signed-off-by: NĂ­colas F. R. A. Prado <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions