From: Lorenzo Pieralisi Date: Mon, 27 Jan 2014 10:50:37 +0000 (+0000) Subject: drivers: bus: fix CCI driver kcalloc call parameters swap X-Git-Tag: upstream/snapshot3+hdmi~3485^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c762036e2480bfd43e62ed872b82e372fe92474;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git drivers: bus: fix CCI driver kcalloc call parameters swap This patch fixes a bug/typo in the CCI driver kcalloc usage that inadvertently swapped the parameters order in the kcalloc call and went unnoticed. Reported-by: Xia Feng Signed-off-by: Lorenzo Pieralisi Signed-off-by: Olof Johansson --- diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c index b6739cb..962fd35 100644 --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c @@ -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;