]> Pileus Git - ~andy/linux/blobdiff - security/tomoyo/mount.c
Merge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze
[~andy/linux] / security / tomoyo / mount.c
index 162a864dba24f51c55156d0733fcae3a88df2da6..9fc2e15841c96f54edbefb24a96c40405d06bedd 100644 (file)
@@ -138,7 +138,7 @@ static int tomoyo_mount_acl(struct tomoyo_request_info *r, char *dev_name,
        }
        if (need_dev) {
                /* Get mount point or device file. */
-               if (kern_path(dev_name, LOOKUP_FOLLOW, &path)) {
+               if (!dev_name || kern_path(dev_name, LOOKUP_FOLLOW, &path)) {
                        error = -ENOENT;
                        goto out;
                }