Merge tag 'gfs2-4.20.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2...
[muen/linux.git] / fs / gfs2 / ops_fstype.c
index 4ec69d9783a84ef59fa3d722f43763817054e184..b041cb8ae383d8fd3642f00e9f2985594573e044 100644 (file)
@@ -1333,6 +1333,9 @@ static struct dentry *gfs2_mount_meta(struct file_system_type *fs_type,
        struct path path;
        int error;
 
+       if (!dev_name || !*dev_name)
+               return ERR_PTR(-EINVAL);
+
        error = kern_path(dev_name, LOOKUP_FOLLOW, &path);
        if (error) {
                pr_warn("path_lookup on %s returned error %d\n",