aboutsummaryrefslogtreecommitdiffstats
path: root/fs/debugfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/debugfs/inode.c')
-rw-r--r--fs/debugfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
index b607d92cdf24..a5f12b7e228d 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
@@ -59,7 +59,6 @@ static struct inode *debugfs_get_inode(struct super_block *sb, umode_t mode, dev
59 case S_IFDIR: 59 case S_IFDIR:
60 inode->i_op = &simple_dir_inode_operations; 60 inode->i_op = &simple_dir_inode_operations;
61 inode->i_fop = &simple_dir_operations; 61 inode->i_fop = &simple_dir_operations;
62 inode->i_private = NULL;
63 62
64 /* directory inodes start off with i_nlink == 2 63 /* directory inodes start off with i_nlink == 2
65 * (for "." entry) */ 64 * (for "." entry) */
@@ -177,7 +176,7 @@ static int debugfs_parse_options(char *data, struct debugfs_mount_opts *opts)
177 opts->uid = uid; 176 opts->uid = uid;
178 break; 177 break;
179 case Opt_gid: 178 case Opt_gid:
180 if (match_octal(&args[0], &option)) 179 if (match_int(&args[0], &option))
181 return -EINVAL; 180 return -EINVAL;
182 gid = make_kgid(current_user_ns(), option); 181 gid = make_kgid(current_user_ns(), option);
183 if (!gid_valid(gid)) 182 if (!gid_valid(gid))