diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 24a4d12d5aa9..270ee7fadbd8 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -1000,8 +1000,7 @@ int do_sysctl(int __user *name, int nlen, void __user *oldval, size_t __user *ol | |||
1000 | int error = parse_table(name, nlen, oldval, oldlenp, | 1000 | int error = parse_table(name, nlen, oldval, oldlenp, |
1001 | newval, newlen, head->ctl_table, | 1001 | newval, newlen, head->ctl_table, |
1002 | &context); | 1002 | &context); |
1003 | if (context) | 1003 | kfree(context); |
1004 | kfree(context); | ||
1005 | if (error != -ENOTDIR) | 1004 | if (error != -ENOTDIR) |
1006 | return error; | 1005 | return error; |
1007 | tmp = tmp->next; | 1006 | tmp = tmp->next; |