drm/radeon: free iio for atombios when driver shutdown
authorjsg <jsg@openbsd.org>
Mon, 27 Mar 2023 03:46:41 +0000 (03:46 +0000)
committerjsg <jsg@openbsd.org>
Mon, 27 Mar 2023 03:46:41 +0000 (03:46 +0000)
From Liwei Song
107b8b542bb9dab4cbdc3276c85fbdd7f6782313 in linux-6.1.y/6.1.16
4773fadedca918faec443daaca5e4ea1c0ced144 in mainline linux

sys/dev/pci/drm/radeon/radeon_device.c

index d60e79f..faa55d4 100644 (file)
@@ -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;