|
@@ -709,7 +709,7 @@ static int proc_sys_readdir(struct file *file, struct dir_context *ctx)
|
|
ctl_dir = container_of(head, struct ctl_dir, header);
|
|
ctl_dir = container_of(head, struct ctl_dir, header);
|
|
|
|
|
|
if (!dir_emit_dots(file, ctx))
|
|
if (!dir_emit_dots(file, ctx))
|
|
- return 0;
|
|
|
|
|
|
+ goto out;
|
|
|
|
|
|
pos = 2;
|
|
pos = 2;
|
|
|
|
|
|
@@ -719,6 +719,7 @@ static int proc_sys_readdir(struct file *file, struct dir_context *ctx)
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+out:
|
|
sysctl_head_finish(head);
|
|
sysctl_head_finish(head);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|