[PATCH] ARM: pxa: Use kmalloc_array() in pxa_pm_init()

Robert Jarzmik robert.jarzmik at free.fr
Mon Aug 29 12:59:48 PDT 2016


SF Markus Elfring <elfring at users.sourceforge.net> writes:

> From: Markus Elfring <elfring at users.sourceforge.net>
> Date: Thu, 25 Aug 2016 18:01:37 +0200
>
> * A multiplication for the size determination of a memory allocation
>   indicated that an array data structure should be processed.
>   Thus use the corresponding function "kmalloc_array".
>
>   This issue was detected by using the Coccinelle software.
>
> * Replace the specification of a data type by a pointer dereference
>   to make the corresponding size determination a bit safer according to
>   the Linux coding style convention.
>
> Signed-off-by: Markus Elfring <elfring at users.sourceforge.net>
Queued to pxa/for-next, thanks.

Cheers.

--
Robert



More information about the linux-arm-kernel mailing list