Explorar o código

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" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Eric W. Biederman %!s(int64=10) %!d(string=hai) anos
pai
achega
d865616e18
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/mpls/af_mpls.c

+ 1 - 1
net/mpls/af_mpls.c

@@ -239,7 +239,7 @@ static struct mpls_route *mpls_rt_alloc(size_t alen)
 {
 {
 	struct mpls_route *rt;
 	struct mpls_route *rt;
 
 
-	rt = kzalloc(GFP_KERNEL, sizeof(*rt) + alen);
+	rt = kzalloc(sizeof(*rt) + alen, GFP_KERNEL);
 	if (rt)
 	if (rt)
 		rt->rt_via_alen = alen;
 		rt->rt_via_alen = alen;
 	return rt;
 	return rt;