staging: unisys: visornic: Replace symbolic perms with octal
authorThomas Jespersen <laumann.thomas@gmail.com>
Thu, 6 Apr 2017 20:58:14 +0000 (22:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 10:49:36 +0000 (12:49 +0200)
Replace symbolic permissions S_IRUSR and S_IWUSR for their octal
counterparts

Signed-off-by: Thomas Jespersen <laumann.thomas@gmail.com>
Acked-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c

index feece918e3481973ae56b19f1c6a548f585fd175..1008337473a819de24bdb799ea821aef7f58f8cc 100644 (file)
@@ -2146,11 +2146,11 @@ static int visornic_init(void)
        if (!visornic_debugfs_dir)
                return err;
 
-       ret = debugfs_create_file("info", S_IRUSR, visornic_debugfs_dir, NULL,
+       ret = debugfs_create_file("info", 0400, visornic_debugfs_dir, NULL,
                                  &debugfs_info_fops);
        if (!ret)
                goto cleanup_debugfs;
-       ret = debugfs_create_file("enable_ints", S_IWUSR, visornic_debugfs_dir,
+       ret = debugfs_create_file("enable_ints", 0200, visornic_debugfs_dir,
                                  NULL, &debugfs_enable_ints_fops);
        if (!ret)
                goto cleanup_debugfs;