Commit 0040773b authored by Al Viro's avatar Al Viro

make xattr_resolve_handlers() safe to use with NULL ->s_xattr

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent aaf431b4
...@@ -655,6 +655,7 @@ strcmp_prefix(const char *a, const char *a_prefix) ...@@ -655,6 +655,7 @@ strcmp_prefix(const char *a, const char *a_prefix)
* operations to the correct xattr_handler. * operations to the correct xattr_handler.
*/ */
#define for_each_xattr_handler(handlers, handler) \ #define for_each_xattr_handler(handlers, handler) \
if (handlers) \
for ((handler) = *(handlers)++; \ for ((handler) = *(handlers)++; \
(handler) != NULL; \ (handler) != NULL; \
(handler) = *(handlers)++) (handler) = *(handlers)++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment