]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/bus/arm-cci.c
drivers: bus: fix CCI driver kcalloc call parameters swap
[karo-tx-linux.git] / drivers / bus / arm-cci.c
index b6739cb78e320755e4fb9480c875b6cc2890dd4e..962fd35cbd8d24f2645d9649dcaf0c7430815ea4 100644 (file)
@@ -979,7 +979,7 @@ static int cci_probe(void)
 
        nb_cci_ports = cci_config->nb_ace + cci_config->nb_ace_lite;
 
-       ports = kcalloc(sizeof(*ports), nb_cci_ports, GFP_KERNEL);
+       ports = kcalloc(nb_cci_ports, sizeof(*ports), GFP_KERNEL);
        if (!ports)
                return -ENOMEM;