]> git.baikalelectronics.ru Git - kernel.git/commit
firmware/psci: fix application of sizeof to pointer
authorjing yangyang <cgel.zte@gmail.com>
Fri, 20 Aug 2021 02:30:16 +0000 (19:30 -0700)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 26 Oct 2021 22:40:54 +0000 (17:40 -0500)
commit6c5f6a8d0853816c25014856ae431e26b3bd4cb7
tree6dbab1c35684270e1502415c40164cb9c85e799b
parent2236dc1b090ef2cd3d8223e990ca20b39af676af
firmware/psci: fix application of sizeof to pointer

sizeof when applied to a pointer typed expression gives the size of
the pointer.

./drivers/firmware/psci/psci_checker.c:158:41-47: ERROR application of sizeof to pointer

This issue was detected with the help of Coccinelle.

Fixes: a16392d9d396 ("drivers/firmware: psci_checker: stash and use topology_core_cpumask for hotplug tests")
Cc: stable@vger.kernel.org
Reported-by: Zeal Robot <zealci@zte.com.cn>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: jing yangyang <jing.yangyang@zte.com.cn>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/firmware/psci/psci_checker.c