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

From: Robert Jarzmik
Date: Mon Aug 29 2016 - 16:00:02 EST


SF Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> writes:

> From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> 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@xxxxxxxxxxxxxxxxxxxxx>
Queued to pxa/for-next, thanks.

Cheers.

--
Robert