]> 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>
Fri, 5 Sep 2025 21:38:38 +0000 (17:38 -0400)
commit89923fb7ead4fdd37b78dd49962d9bb5892403e6
tree0d48a8f257f1f721f8c6759ae2d5baf9d84980ae
parent276e8beb2a0c390fdac8f11bb58d9fdf95a6d538
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c