From: Eric W. Biederman Date: Sat, 7 Mar 2015 22:19:41 +0000 (-0600) Subject: mpls: Fix the kzalloc argument order in mpls_rt_alloc X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d865616e1889d0b6528b5d9b620e13b1607003a5;p=linux-beck.git mpls: Fix the kzalloc argument order in mpls_rt_alloc *Blink* I got the argument order wrong to kzalloc and the code was working properly when tested. *Blink* Fix that. Signed-off-by: "Eric W. Biederman" Signed-off-by: David S. Miller --- diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c index 4f265c677eca..59cc32564d50 100644 --- a/net/mpls/af_mpls.c +++ b/net/mpls/af_mpls.c @@ -239,7 +239,7 @@ static struct mpls_route *mpls_rt_alloc(size_t alen) { struct mpls_route *rt; - rt = kzalloc(GFP_KERNEL, sizeof(*rt) + alen); + rt = kzalloc(sizeof(*rt) + alen, GFP_KERNEL); if (rt) rt->rt_via_alen = alen; return rt;