Christoph Hellwig 5f13ee9c1c 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>
2014-01-30 09:37:49 -08:00
..
2013-06-08 16:20:18 -04:00
2014-01-13 17:29:50 -05:00
2014-01-28 08:46:44 -08:00
2013-11-15 13:41:43 -05:00
2012-10-02 08:17:02 -07:00
2012-07-30 19:06:41 -04:00
2012-07-30 19:06:52 -04:00
2014-01-13 13:34:36 -05:00