summaryrefslogtreecommitdiff
path: root/fs/ecryptfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2014-01-30 14:01:52 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-30 17:37:49 (GMT)
commit5f13ee9c1ce87b3c99928ab33ef43a2c0d3fd220 (patch)
tree4f40ff795f8e23212f0a93f0ebf8345c34347edb /fs/ecryptfs
parent9b0cd304f26b9fca140de15deeac2bf357d1f388 (diff)
downloadlinux-5f13ee9c1ce87b3c99928ab33ef43a2c0d3fd220.tar.xz
nfs: fix xattr inode op pointers when disabled
Chris Mason reported a NULL pointer derefernence in generic_getxattr() that was due to sb->s_xattr being NULL. The reason is that the nfs #ifdef's for ACL support were misplaced, and the nfs3 inode operations had the xattr operation pointers set up, even though xattrs were not actually supported. As a result, the xattr code was being called without the infrastructure having been set up. Move the #ifdef's appropriately. Reported-and-tested-by: Chris Mason <clm@fb.com> Acked-by: Al Viro viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ecryptfs')
0 files changed, 0 insertions, 0 deletions