Skip to content

Commit 7c76203

Browse files
Lorenzo Pieralisiolofj
authored andcommitted
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 <xiafeng@allwinnertech.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Olof Johansson <olof@lixom.net>
1 parent 94db37a commit 7c76203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bus/arm-cci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ static int cci_probe(void)
979979

980980
nb_cci_ports = cci_config->nb_ace + cci_config->nb_ace_lite;
981981

982-
ports = kcalloc(sizeof(*ports), nb_cci_ports, GFP_KERNEL);
982+
ports = kcalloc(nb_cci_ports, sizeof(*ports), GFP_KERNEL);
983983
if (!ports)
984984
return -ENOMEM;
985985

0 commit comments

Comments
 (0)