mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Signed-off-by: Olof Johansson <[email protected]>
This commit is contained in:
parent
94db37ad85
commit
7c762036e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue