]> git.baikalelectronics.ru Git - kernel.git/commit
putname(): IS_ERR_OR_NULL() is wrong here
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 7 Sep 2021 20:14:05 +0000 (16:14 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 7 Sep 2021 20:14:05 +0000 (16:14 -0400)
commit4bf249f6593c5b074922222472bd7de0fef46c7a
treedb4f163675e6f72f3a9f59d5509f4e8b80b903c9
parentcce2000e20c0e96df7abb565695e49042f50fdde
putname(): IS_ERR_OR_NULL() is wrong here

Mixing NULL and ERR_PTR() just in case is a Bad Idea(tm).  For
struct filename the former is wrong - failures are reported
as ERR_PTR(...), not as NULL.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c