]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: remove oem i2c adapter on finish
authorGeoffrey McRae <geoffrey.mcrae@amd.com>
Thu, 28 Aug 2025 12:26:22 +0000 (22:26 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:37:32 +0000 (16:37 +0200)
commitc686124bcf06253620790857ff462f00f3f7a4ab
treeed1eca3172371786167d50cc043562753e94395b
parentb74a1d7e46150f4963feb1b3e0cc19cd8ba1d78c
drm/amd/display: remove oem i2c adapter on finish

commit 1dfd2864a1c4909147663e5a27c055f50f7c2796 upstream.

Fixes a bug where unbinding of the GPU would leave the oem i2c adapter
registered resulting in a null pointer dereference when applications try
to access the invalid device.

Fixes: 3d5470c97314 ("drm/amd/display/dm: add support for OEM i2c bus")
Cc: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Geoffrey McRae <geoffrey.mcrae@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 89923fb7ead4fdd37b78dd49962d9bb5892403e6)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c