Commit 2e2d64a
Al Viro
do_filp_open(): DTRT when getting ERR_PTR() as pathname
The rest of the set_nameidata() callers treat IS_ERR(pathname) as
"bail out immediately with PTR_ERR(pathname) as error". Makes
life simpler for callers; do_filp_open() is the only exception
and its callers would also benefit from such calling conventions
change.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent ba33ac1 commit 2e2d64a
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4871 | 4871 | | |
4872 | 4872 | | |
4873 | 4873 | | |
| 4874 | + | |
| 4875 | + | |
4874 | 4876 | | |
4875 | 4877 | | |
4876 | 4878 | | |
| |||
0 commit comments