Thread (1 message) 1 message, 1 author, 2016-08-29

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

From: robert.jarzmik@free.fr (Robert Jarzmik)
Date: 2016-08-29 19:59:54
Also in: kernel-janitors, lkml

SF Markus Elfring [off-list ref] writes:
From: Markus Elfring <redacted>
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 <redacted>
Queued to pxa/for-next, thanks.

Cheers.

--
Robert
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help