commit | 0040773bff7b585fc948565a0558e5a6a4680e96 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed May 25 17:34:41 2016 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Wed May 25 17:34:41 2016 -0400 |
tree | 7d638d874214914840d620bca4ddd87af1e75728 | |
parent | aaf431b4f92152d46ab54079692633aa422262b1 [diff] [blame] |
make xattr_resolve_handlers() safe to use with NULL ->s_xattr Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
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 @@ * operations to the correct xattr_handler. */ #define for_each_xattr_handler(handlers, handler) \ + if (handlers) \ for ((handler) = *(handlers)++; \ (handler) != NULL; \ (handler) = *(handlers)++)