summaryrefslogtreecommitdiffstats
path: root/fs/xattr.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-05-25 17:34:41 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-05-25 17:34:41 -0400
commit0040773bff7b585fc948565a0558e5a6a4680e96 (patch)
tree7d638d874214914840d620bca4ddd87af1e75728 /fs/xattr.c
parentaaf431b4f92152d46ab54079692633aa422262b1 (diff)
downloadop-kernel-dev-0040773bff7b585fc948565a0558e5a6a4680e96.zip
op-kernel-dev-0040773bff7b585fc948565a0558e5a6a4680e96.tar.gz
make xattr_resolve_handlers() safe to use with NULL ->s_xattr
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/xattr.c')
-rw-r--r--fs/xattr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xattr.c b/fs/xattr.c
index 4231488..fc81e77 100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
@@ -655,6 +655,7 @@ strcmp_prefix(const char *a, const char *a_prefix)
* operations to the correct xattr_handler.
*/
#define for_each_xattr_handler(handlers, handler) \
+ if (handlers) \
for ((handler) = *(handlers)++; \
(handler) != NULL; \
(handler) = *(handlers)++)
OpenPOWER on IntegriCloud