diff options
author | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2014-01-27 05:50:37 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-01-31 18:15:13 -0500 |
commit | 7c762036e2480bfd43e62ed872b82e372fe92474 (patch) | |
tree | a8ffc1da857e99b210d65df21209ec027c81a695 /drivers/bus/arm-cci.c | |
parent | 94db37ad85f8711d38744d3a12cae569641a41a3 (diff) |
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>
Diffstat (limited to 'drivers/bus/arm-cci.c')
-rw-r--r-- | drivers/bus/arm-cci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c index b6739cb78e32..962fd35cbd8d 100644 --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c | |||
@@ -979,7 +979,7 @@ static int cci_probe(void) | |||
979 | 979 | ||
980 | nb_cci_ports = cci_config->nb_ace + cci_config->nb_ace_lite; | 980 | nb_cci_ports = cci_config->nb_ace + cci_config->nb_ace_lite; |
981 | 981 | ||
982 | ports = kcalloc(sizeof(*ports), nb_cci_ports, GFP_KERNEL); | 982 | ports = kcalloc(nb_cci_ports, sizeof(*ports), GFP_KERNEL); |
983 | if (!ports) | 983 | if (!ports) |
984 | return -ENOMEM; | 984 | return -ENOMEM; |
985 | 985 | ||