]> git.ipfire.org Git - people/ms/linux.git/commit - fs/namei.c
allow link_path_walk() to take ERR_PTR()
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Jul 2018 20:33:23 +0000 (16:33 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 12 Jul 2018 14:04:30 +0000 (10:04 -0400)
commit9b5858e99ae1cfb60dc00461cfc7bd4dd077d7d7
treef8780361de2aeb43dcc6675ede5de268a47962e0
parentedc2b1da779887c74ade799574efc5819906598f
allow link_path_walk() to take ERR_PTR()

There is a check for IS_ERR(name) immediately upstream of each call
of link_path_walk(name, nd), with positives treated as if link_path_walk()
failed with PTR_ERR(name).  Taking that check into link_path_walk() itself
simplifies things nicely.

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