projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaf431b
)
make xattr_resolve_handlers() safe to use with NULL ->s_xattr
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 25 May 2016 21:34:41 +0000
(17:34 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 25 May 2016 21:34:41 +0000
(17:34 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/xattr.c
patch
|
blob
|
history
diff --git
a/fs/xattr.c
b/fs/xattr.c
index
4231488
..
fc81e77
100644
(file)
--- 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)++)