aboutsummaryrefslogtreecommitdiffstats
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
parentaaf431b4f92152d46ab54079692633aa422262b1 (diff)
make xattr_resolve_handlers() safe to use with NULL ->s_xattr
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r--fs/xattr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xattr.c b/fs/xattr.c
index 4231488f2122..fc81e771488a 100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
@@ -655,6 +655,7 @@ strcmp_prefix(const char *a, const char *a_prefix)
655 * operations to the correct xattr_handler. 655 * operations to the correct xattr_handler.
656 */ 656 */
657#define for_each_xattr_handler(handlers, handler) \ 657#define for_each_xattr_handler(handlers, handler) \
658 if (handlers) \
658 for ((handler) = *(handlers)++; \ 659 for ((handler) = *(handlers)++; \
659 (handler) != NULL; \ 660 (handler) != NULL; \
660 (handler) = *(handlers)++) 661 (handler) = *(handlers)++)