]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/ubifs/super.c
Merge tag 'selinux-pr-20190917' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / fs / ubifs / super.c
index 5e1e8ec0589eba84dd44b41a4b998df359b4e520..7d4547e5202de4c26b08623f8a229aba999fb0db 100644 (file)
@@ -2267,8 +2267,10 @@ static struct dentry *ubifs_mount(struct file_system_type *fs_type, int flags,
                }
        } else {
                err = ubifs_fill_super(sb, data, flags & SB_SILENT ? 1 : 0);
-               if (err)
+               if (err) {
+                       kfree(c);
                        goto out_deact;
+               }
                /* We do not support atime */
                sb->s_flags |= SB_ACTIVE;
                if (IS_ENABLED(CONFIG_UBIFS_ATIME_SUPPORT))