diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-26 00:34:41 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-26 00:34:41 +0300 |
commit | 0040773bff7b585fc948565a0558e5a6a4680e96 (patch) | |
tree | 7d638d874214914840d620bca4ddd87af1e75728 /fs/xattr.c | |
parent | aaf431b4f92152d46ab54079692633aa422262b1 (diff) | |
download | linux-0040773bff7b585fc948565a0558e5a6a4680e96.tar.xz |
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.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)++) |