diff options
-rw-r--r-- | fs/proc/proc_sysctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 55313d994895..d4e37acd4821 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -709,7 +709,7 @@ static int proc_sys_readdir(struct file *file, struct dir_context *ctx) | |||
709 | ctl_dir = container_of(head, struct ctl_dir, header); | 709 | ctl_dir = container_of(head, struct ctl_dir, header); |
710 | 710 | ||
711 | if (!dir_emit_dots(file, ctx)) | 711 | if (!dir_emit_dots(file, ctx)) |
712 | return 0; | 712 | goto out; |
713 | 713 | ||
714 | pos = 2; | 714 | pos = 2; |
715 | 715 | ||
@@ -719,6 +719,7 @@ static int proc_sys_readdir(struct file *file, struct dir_context *ctx) | |||
719 | break; | 719 | break; |
720 | } | 720 | } |
721 | } | 721 | } |
722 | out: | ||
722 | sysctl_head_finish(head); | 723 | sysctl_head_finish(head); |
723 | return 0; | 724 | return 0; |
724 | } | 725 | } |