diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-10-11 02:16:35 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-10-11 02:16:35 +0000 |
commit | 2a5a0ca03dd47fbcc9daed66ed4dfab4d6410ad6 (patch) | |
tree | 8cd242eeb1c72de1afbfa2ac72027052dc6ad382 /sys/dev/pci/drm | |
parent | 7300776fa28b463cf435cbf3a4026c70c069325d (diff) |
drm/amd/display: fix double free issue during amdgpu module unload
From Tim Huang
cf6f3ebd6312d465fee096d1f58089b177c7c67f in linux-6.6.y/6.6.55
20b5a8f9f4670a8503aa9fa95ca632e77c6bf55d in mainline linux
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/amd/display/dc/link/link_factory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/link/link_factory.c b/sys/dev/pci/drm/amd/display/dc/link/link_factory.c index 33bb96f770b..eb7c9f226af 100644 --- a/sys/dev/pci/drm/amd/display/dc/link/link_factory.c +++ b/sys/dev/pci/drm/amd/display/dc/link/link_factory.c @@ -403,7 +403,7 @@ static void link_destruct(struct dc_link *link) if (link->panel_cntl) link->panel_cntl->funcs->destroy(&link->panel_cntl); - if (link->link_enc) { + if (link->link_enc && !link->is_dig_mapping_flexible) { /* Update link encoder resource tracking variables. These are used for * the dynamic assignment of link encoders to streams. Virtual links * are not assigned encoder resources on creation. |