Skip to content
Commit b1357cfb authored by Zahari Doychev's avatar Zahari Doychev Committed by David S. Miller
Browse files

rocker: fix kcalloc parameter order



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: default avatarZahari Doychev <zahari.doychev@linux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f530f39f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment