From 44428c5950a1bbb91ea1f743f5b69daadf2ed4aa Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 27 Mar 2023 03:46:41 +0000 Subject: [PATCH] drm/radeon: free iio for atombios when driver shutdown From Liwei Song 107b8b542bb9dab4cbdc3276c85fbdd7f6782313 in linux-6.1.y/6.1.16 4773fadedca918faec443daaca5e4ea1c0ced144 in mainline linux --- sys/dev/pci/drm/radeon/radeon_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/pci/drm/radeon/radeon_device.c b/sys/dev/pci/drm/radeon/radeon_device.c index d60e79f1c70..faa55d4afe7 100644 --- a/sys/dev/pci/drm/radeon/radeon_device.c +++ b/sys/dev/pci/drm/radeon/radeon_device.c @@ -1032,6 +1032,7 @@ void radeon_atombios_fini(struct radeon_device *rdev) { if (rdev->mode_info.atom_context) { kfree(rdev->mode_info.atom_context->scratch); + kfree(rdev->mode_info.atom_context->iio); } kfree(rdev->mode_info.atom_context); rdev->mode_info.atom_context = NULL; -- 2.20.1