aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/inode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/security/inode.c b/security/inode.c
index 47eb63480dac..176aacea8ca4 100644
--- a/security/inode.c
+++ b/security/inode.c
@@ -44,8 +44,8 @@ static ssize_t default_write_file(struct file *file, const char __user *buf,
44 44
45static int default_open(struct inode *inode, struct file *file) 45static int default_open(struct inode *inode, struct file *file)
46{ 46{
47 if (inode->u.generic_ip) 47 if (inode->i_private)
48 file->private_data = inode->u.generic_ip; 48 file->private_data = inode->i_private;
49 49
50 return 0; 50 return 0;
51} 51}
@@ -194,7 +194,7 @@ static int create_by_name(const char *name, mode_t mode,
194 * directory dentry if set. If this paramater is NULL, then the 194 * directory dentry if set. If this paramater is NULL, then the
195 * file will be created in the root of the securityfs filesystem. 195 * file will be created in the root of the securityfs filesystem.
196 * @data: a pointer to something that the caller will want to get to later 196 * @data: a pointer to something that the caller will want to get to later
197 * on. The inode.u.generic_ip pointer will point to this value on 197 * on. The inode.i_private pointer will point to this value on
198 * the open() call. 198 * the open() call.
199 * @fops: a pointer to a struct file_operations that should be used for 199 * @fops: a pointer to a struct file_operations that should be used for
200 * this file. 200 * this file.
@@ -240,7 +240,7 @@ struct dentry *securityfs_create_file(const char *name, mode_t mode,
240 if (fops) 240 if (fops)
241 dentry->d_inode->i_fop = fops; 241 dentry->d_inode->i_fop = fops;
242 if (data) 242 if (data)
243 dentry->d_inode->u.generic_ip = data; 243 dentry->d_inode->i_private = data;
244 } 244 }
245exit: 245exit:
246 return dentry; 246 return dentry;