make sure do_dentry_open() won't return positive as an error
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 9 Jul 2018 01:45:07 +0000 (21:45 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 11 Jul 2018 03:29:03 +0000 (23:29 -0400)
commit6b4e8085c0004382b985a5c005c685073630e746
tree9b7cc4226ab495fd2716e328754294028b973fb3
parentb10a4a9f7695335bd2bb19bffdda7fbefbc6581f
make sure do_dentry_open() won't return positive as an error

An ->open() instances really, really should not be doing that.  There's
a lot of places e.g. around atomic_open() that could be confused by that,
so let's catch that early.

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