X-Git-Url: https://repo.jachan.dev/linux.git/blobdiff_plain/0b5eca67bd2d0e6f6d0ccdc316aced0cc4bf2e9f..d0fbad0aec1df29717fab736eb24c8a49cf2c70b:/drivers/gpu/drm/amd/amdgpu/atom.c diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c b/drivers/gpu/drm/amd/amdgpu/atom.c index 69500a8b4e2d..e9934de1b9cf 100644 --- a/drivers/gpu/drm/amd/amdgpu/atom.c +++ b/drivers/gpu/drm/amd/amdgpu/atom.c @@ -1221,7 +1221,7 @@ static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index, ectx.abort = false; ectx.last_jump = 0; if (ws) - ectx.ws = kzalloc(4 * ws, GFP_KERNEL); + ectx.ws = kcalloc(4, ws, GFP_KERNEL); else ectx.ws = NULL;