diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 8c892c2d5300f2d6a44e8faf481b14ecb904d9fe..529be058202938cf1226ec8644401951df8ab032 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -2146,6 +2146,7 @@ static struct dentry *ubifs_mount(struct file_system_type *fs_type, int flags, if (IS_ERR(sb)) { err = PTR_ERR(sb); kfree(c); + goto out_close; } if (sb->s_root) {