summaryrefslogtreecommitdiffstats
path: root/kernel/fs/proc_namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fs/proc_namespace.c')
-rw-r--r--kernel/fs/proc_namespace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/fs/proc_namespace.c b/kernel/fs/proc_namespace.c
index 8ebd9a334..876459559 100644
--- a/kernel/fs/proc_namespace.c
+++ b/kernel/fs/proc_namespace.c
@@ -197,6 +197,8 @@ static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt)
if (sb->s_op->show_devname) {
seq_puts(m, "device ");
err = sb->s_op->show_devname(m, mnt_path.dentry);
+ if (err)
+ goto out;
} else {
if (r->mnt_devname) {
seq_puts(m, "device ");