Thread (23 messages) 23 messages, 3 authors, 2016-09-25

Re: Input-gameport: Use kmalloc_array() in joydump_connect()

flat view

From: SF Markus Elfring <hidden>
Date: 2016-09-24 17:04:26
Also in: kernel-janitors, lkml

quoted
* 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".
-ENOPARSE.
Do you find an other wording better?


The script "checkpatch.pl" can point information out like the following.

WARNING: Prefer kmalloc_array over kmalloc with multiply


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