projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3123109
)
fs/namei.c:reserve_stack(): tidy up the call of try_to_unlazy()
author
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 7 Jan 2022 17:20:37 +0000
(12:20 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 20 May 2022 03:26:29 +0000
(23:26 -0400)
!foo() != 0 is a strange way to spell !foo(); fallout from
"fs: make unlazy_walk() error handling consistent"...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c
patch
|
blob
|
history
diff --git
a/fs/namei.c
b/fs/namei.c
index
3f1829b
..
9e327d0
100644
(file)
--- a/
fs/namei.c
+++ b/
fs/namei.c
@@
-1754,7
+1754,7
@@
static int reserve_stack(struct nameidata *nd, struct path *link, unsigned seq)
// unlazy even if we fail to grab the link - cleanup needs it
bool grabbed_link = legitimize_path(nd, link, seq);
- if (!try_to_unlazy(nd)
!= 0
|| !grabbed_link)
+ if (!try_to_unlazy(nd) || !grabbed_link)
return -ECHILD;
if (nd_alloc_stack(nd))