Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 065792eb authored by Lorenzo Pieralisi's avatar Lorenzo Pieralisi Committed by Neil Leeder
Browse files

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.

Change-Id: I2d7a0dfa621f87e54b4c7b5f72ed87e6c6e8bc79
Reported-by: default avatarXia Feng <xiafeng@allwinnertech.com>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
Git-commit: 7c762036e2480bfd43e62ed872b82e372fe92474
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarNeil Leeder <nleeder@codeaurora.org>
parent 18911bf3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;