From 0bf58a8ce368dd0e77000222845f6f05c804be21 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 18 Aug 2021 09:56:59 +0000 Subject: [PATCH] drm/amd/display: use GFP_ATOMIC in amdgpu_dm_irq_schedule_work 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c index 4425a1d393a..d603c10951b 100644 --- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c +++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c @@ -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; -- 2.20.1