]> Git Repo - linux.git/blobdiff - lib/mpi/mpiutil.c
Merge tag 'linux-watchdog-5.15-rc1' of git://www.linux-watchdog.org/linux-watchdog
[linux.git] / lib / mpi / mpiutil.c
index 9a75ca3f7edf95e6956d82ff9f1b00ce66f3fac2..bc81419f400c5576e50b0afca66a9188b3b52d68 100644 (file)
@@ -148,7 +148,7 @@ int mpi_resize(MPI a, unsigned nlimbs)
                return 0;       /* no need to do it */
 
        if (a->d) {
-               p = kmalloc_array(nlimbs, sizeof(mpi_limb_t), GFP_KERNEL);
+               p = kcalloc(nlimbs, sizeof(mpi_limb_t), GFP_KERNEL);
                if (!p)
                        return -ENOMEM;
                memcpy(p, a->d, a->alloced * sizeof(mpi_limb_t));
This page took 0.028155 seconds and 4 git commands to generate.