]> Gentwo Git Trees - linux/.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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Sep 2025 16:27:52 +0000 (12:27 -0400)
commit1dfd2864a1c4909147663e5a27c055f50f7c2796
treef13c9b72cba800d86c914aa166e9609e60badc05
parent60f71f0db7b12f303789ef59949e38ee5838ee8b
drm/amd/display: remove oem i2c adapter on finish

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
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c