Skip to content

Commit

Permalink
drivers: bus: fix CCI driver kcalloc call parameters swap
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Olof Johansson <[email protected]>
  • Loading branch information
Lorenzo Pieralisi authored and olofj committed Jan 31, 2014
1 parent 94db37a commit 7c76203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bus/arm-cci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7c76203

Please sign in to comment.