projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
008a5b0
)
mpls: Fix the kzalloc argument order in mpls_rt_alloc
author
Eric W. Biederman
<ebiederm@xmission.com>
Sat, 7 Mar 2015 22:19:41 +0000
(16:19 -0600)
committer
David S. Miller
<davem@davemloft.net>
Sun, 8 Mar 2015 23:30:06 +0000
(19:30 -0400)
*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>
net/mpls/af_mpls.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mpls/af_mpls.c
b/net/mpls/af_mpls.c
index 4f265c677ecac8b877f8db44b187c37017d3f223..59cc32564d502f6e9a11519e3e10c50879aa6188 100644
(file)
--- 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;