summaryrefslogtreecommitdiff
path: root/fs/proc
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2017-01-22 12:01:43 +0800
committerAlex Shi <alex.shi@linaro.org>2017-01-22 12:01:43 +0800
commitb4bbeeb816c06fd59dea2ea82c7b5650eb185e65 (patch)
treea9b57e3df7589fe3a8649c41eff9b49685b99aec /fs/proc
parentee620ddd6581cf9779d27677f6f0f11e3f939a8c (diff)
parent261e8dbdb94baf294d0c8d45de843bb3d928c90e (diff)
Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/proc_sysctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index fe5b6e6c4671..4dbe1e2daeca 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -703,7 +703,7 @@ static int proc_sys_readdir(struct file *file, struct dir_context *ctx)
ctl_dir = container_of(head, struct ctl_dir, header);
if (!dir_emit_dots(file, ctx))
- return 0;
+ goto out;
pos = 2;
@@ -713,6 +713,7 @@ static int proc_sys_readdir(struct file *file, struct dir_context *ctx)
break;
}
}
+out:
sysctl_head_finish(head);
return 0;
}