Thread (2 messages) flat view 2 messages, 2 authors, 2017-09-05

Re: [PATCH][next v2] rocker: fix kcalloc parameter order

From: David Miller <davem@davemloft.net>
Date: 2017-09-05 21:57:41

From: Zahari Doychev <redacted>
Date: Tue,  5 Sep 2017 21:49:58 +0200
The function calls to kcalloc use wrong parameter order and incorrect flags
values. GFP_KERNEL is used instead of flags now and the order is corrected.

The change was done using the following coccinelle script:

@@
expression E1,E2;
type T;
@@

-kcalloc(E1, E2, sizeof(T))
+kcalloc(E2, sizeof(T), GFP_KERNEL)

Signed-off-by: Zahari Doychev <redacted>
Applied, thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help