diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-25 17:34:41 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-25 17:34:41 -0400 |
commit | 0040773bff7b585fc948565a0558e5a6a4680e96 (patch) | |
tree | 7d638d874214914840d620bca4ddd87af1e75728 /fs | |
parent | aaf431b4f92152d46ab54079692633aa422262b1 (diff) | |
download | linux-rt-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')
-rw-r--r-- | fs/xattr.c | 1 |
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) * operations to the correct xattr_handler. */ #define for_each_xattr_handler(handlers, handler) \ + if (handlers) \ for ((handler) = *(handlers)++; \ (handler) != NULL; \ (handler) = *(handlers)++) |