aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/xattr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ocfs2/xattr.c')
-rw-r--r--fs/ocfs2/xattr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c
index 095b0bb6e590..e1d638af6ac3 100644
--- a/fs/ocfs2/xattr.c
+++ b/fs/ocfs2/xattr.c
@@ -5324,6 +5324,9 @@ int ocfs2_init_security_get(struct inode *inode,
5324 struct inode *dir, 5324 struct inode *dir,
5325 struct ocfs2_security_xattr_info *si) 5325 struct ocfs2_security_xattr_info *si)
5326{ 5326{
5327 /* check whether ocfs2 support feature xattr */
5328 if (!ocfs2_supports_xattr(OCFS2_SB(dir->i_sb)))
5329 return -EOPNOTSUPP;
5327 return security_inode_init_security(inode, dir, &si->name, &si->value, 5330 return security_inode_init_security(inode, dir, &si->name, &si->value,
5328 &si->value_len); 5331 &si->value_len);
5329} 5332}