drm/amd/display: use GFP_ATOMIC in amdgpu_dm_irq_schedule_work
authorjsg <jsg@openbsd.org>
Wed, 18 Aug 2021 09:56:59 +0000 (09:56 +0000)
committerjsg <jsg@openbsd.org>
Wed, 18 Aug 2021 09:56:59 +0000 (09:56 +0000)
From Anson Jacob
bd80d11a516c78fb74d11e69c67082f36f8ef8e3 in linux 5.10.y/5.10.60
0cde63a8fc4d9f9f580c297211fd05f91c0fd66d in mainline linux

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c

index 4425a1d..d603c10 100644 (file)
@@ -531,7 +531,7 @@ static void amdgpu_dm_irq_schedule_work(struct amdgpu_device *adev,
                handler_data = container_of(handler_list->next, struct amdgpu_dm_irq_handler_data, list);
 
                /*allocate a new amdgpu_dm_irq_handler_data*/
-               handler_data_add = kzalloc(sizeof(*handler_data), GFP_KERNEL);
+               handler_data_add = kzalloc(sizeof(*handler_data), GFP_ATOMIC);
                if (!handler_data_add) {
                        DRM_ERROR("DM_IRQ: failed to allocate irq handler!\n");
                        return;