diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-03-07 17:19:41 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-08 19:30:06 -0400 |
commit | d865616e1889d0b6528b5d9b620e13b1607003a5 (patch) | |
tree | e71ed70e26c25f1d1819ff137ceac9be62dae3a5 /net/mpls | |
parent | 008a5b07f1b4beab1004ac799f449b59a45af8e9 (diff) |
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>
Diffstat (limited to 'net/mpls')
-rw-r--r-- | net/mpls/af_mpls.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
239 | { | 239 | { |
240 | struct mpls_route *rt; | 240 | struct mpls_route *rt; |
241 | 241 | ||
242 | rt = kzalloc(GFP_KERNEL, sizeof(*rt) + alen); | 242 | rt = kzalloc(sizeof(*rt) + alen, GFP_KERNEL); |
243 | if (rt) | 243 | if (rt) |
244 | rt->rt_via_alen = alen; | 244 | rt->rt_via_alen = alen; |
245 | return rt; | 245 | return rt; |