diff options
Diffstat (limited to 'drivers/ras/amd')
| -rw-r--r-- | drivers/ras/amd/fmpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ras/amd/fmpm.c b/drivers/ras/amd/fmpm.c index 8877c6ff64c4..c84e26cca724 100644 --- a/drivers/ras/amd/fmpm.c +++ b/drivers/ras/amd/fmpm.c @@ -819,7 +819,7 @@ static int allocate_records(void) { int i, ret = 0; - fru_records = kcalloc(max_nr_fru, sizeof(struct fru_rec *), GFP_KERNEL); + fru_records = kzalloc_objs(struct fru_rec *, max_nr_fru, GFP_KERNEL); if (!fru_records) { ret = -ENOMEM; goto out; |
