]> Git Repo - linux.git/blobdiff - lib/mpi/mpiutil.c
scsi: zfcp: Trace when request remove fails after qdio send fails
[linux.git] / lib / mpi / mpiutil.c
index 9a75ca3f7edf95e6956d82ff9f1b00ce66f3fac2..aa8c46544af8e00496025f9b487a3212834dcc50 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));
@@ -272,7 +272,7 @@ MPI mpi_set_ui(MPI w, unsigned long u)
        if (!w)
                w = mpi_alloc(1);
        /* FIXME: If U is 0 we have no need to resize and thus possible
-        * allocating the the limbs.
+        * allocating the limbs.
         */
        RESIZE_IF_NEEDED(w, 1);
        w->d[0] = u;
This page took 0.034148 seconds and 4 git commands to generate.