diff options
Diffstat (limited to 'security/commoncap.c')
-rw-r--r-- | security/commoncap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/commoncap.c b/security/commoncap.c index f0e671dcfff0..7cd61a5f5205 100644 --- a/security/commoncap.c +++ b/security/commoncap.c | |||
@@ -235,7 +235,7 @@ int cap_inode_need_killpriv(struct dentry *dentry) | |||
235 | struct inode *inode = dentry->d_inode; | 235 | struct inode *inode = dentry->d_inode; |
236 | int error; | 236 | int error; |
237 | 237 | ||
238 | if (!inode->i_op || !inode->i_op->getxattr) | 238 | if (!inode->i_op->getxattr) |
239 | return 0; | 239 | return 0; |
240 | 240 | ||
241 | error = inode->i_op->getxattr(dentry, XATTR_NAME_CAPS, NULL, 0); | 241 | error = inode->i_op->getxattr(dentry, XATTR_NAME_CAPS, NULL, 0); |
@@ -256,7 +256,7 @@ int cap_inode_killpriv(struct dentry *dentry) | |||
256 | { | 256 | { |
257 | struct inode *inode = dentry->d_inode; | 257 | struct inode *inode = dentry->d_inode; |
258 | 258 | ||
259 | if (!inode->i_op || !inode->i_op->removexattr) | 259 | if (!inode->i_op->removexattr) |
260 | return 0; | 260 | return 0; |
261 | 261 | ||
262 | return inode->i_op->removexattr(dentry, XATTR_NAME_CAPS); | 262 | return inode->i_op->removexattr(dentry, XATTR_NAME_CAPS); |
@@ -314,7 +314,7 @@ int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data | |||
314 | 314 | ||
315 | memset(cpu_caps, 0, sizeof(struct cpu_vfs_cap_data)); | 315 | memset(cpu_caps, 0, sizeof(struct cpu_vfs_cap_data)); |
316 | 316 | ||
317 | if (!inode || !inode->i_op || !inode->i_op->getxattr) | 317 | if (!inode || !inode->i_op->getxattr) |
318 | return -ENODATA; | 318 | return -ENODATA; |
319 | 319 | ||
320 | size = inode->i_op->getxattr((struct dentry *)dentry, XATTR_NAME_CAPS, &caps, | 320 | size = inode->i_op->getxattr((struct dentry *)dentry, XATTR_NAME_CAPS, &caps, |