diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index 70d4191cf33d4a3d875ff9c719b4f1b9c75d7f78..6ce542c11f987902dbc3e4f627e06de551ba5490 100644 --- a/fs/omfs/inode.c +++ b/fs/omfs/inode.c @@ -549,8 +549,10 @@ static int omfs_fill_super(struct super_block *sb, void *data, int silent) } sb->s_root = d_make_root(root); - if (!sb->s_root) + if (!sb->s_root) { + ret = -ENOMEM; goto out_brelse_bh2; + } printk(KERN_DEBUG "omfs: Mounted volume %s\n", omfs_rb->r_name); ret = 0;