aboutsummaryrefslogtreecommitdiffstats
path: root/fs/isofs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/isofs')
-rw-r--r--fs/isofs/inode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c
index 7b99f5f460be..bd62c76fb5df 100644
--- a/fs/isofs/inode.c
+++ b/fs/isofs/inode.c
@@ -948,8 +948,11 @@ root_found:
948 948
949 /* get the root dentry */ 949 /* get the root dentry */
950 s->s_root = d_alloc_root(inode); 950 s->s_root = d_alloc_root(inode);
951 if (!(s->s_root)) 951 if (!(s->s_root)) {
952 goto out_no_root; 952 iput(inode);
953 error = -ENOMEM;
954 goto out_no_inode;
955 }
953 956
954 kfree(opt.iocharset); 957 kfree(opt.iocharset);
955 958