Message ID | 20210520081646.6296-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [next] drm/amdgpu/acpi: Fix null check on memory allocation | expand |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c index c39f447df21d..b3ee7fb72b81 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c @@ -901,7 +901,7 @@ int amdgpu_acpi_init(struct amdgpu_device *adev) goto out; atcs = kzalloc(sizeof(*atcs), GFP_KERNEL); - if (!atif) { + if (!atcs) { DRM_WARN("Not enough memory to initialize ATCS\n"); goto out; }