]> git.karo-electronics.de Git - linux-beck.git/blobdiff - sound/pci/ctxfi/ctsrc.c
ALSA: ctxf: Use kcalloc instead of kzalloc to allocate array
[linux-beck.git] / sound / pci / ctxfi / ctsrc.c
index c749fa72088996c75843927f7470997288a6e669..6e77e86307c2c90fd8ca8d3dde53dceebd0499af 100644 (file)
@@ -20,7 +20,7 @@
 #include "cthardware.h"
 #include <linux/slab.h>
 
-#define SRC_RESOURCE_NUM       64
+#define SRC_RESOURCE_NUM       256
 #define SRCIMP_RESOURCE_NUM    256
 
 static unsigned int conj_mask;
@@ -437,7 +437,7 @@ get_src_rsc(struct src_mgr *mgr, const struct src_desc *desc, struct src **rsrc)
 
        /* Allocate mem for master src resource */
        if (MEMRD == desc->mode)
-               src = kzalloc(sizeof(*src)*desc->multi, GFP_KERNEL);
+               src = kcalloc(desc->multi, sizeof(*src), GFP_KERNEL);
        else
                src = kzalloc(sizeof(*src), GFP_KERNEL);