]> git.baikalelectronics.ru Git - kernel.git/commit
proc: delete redundant subset=pid check
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 7 May 2021 01:02:18 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 May 2021 02:24:11 +0000 (19:24 -0700)
commitf943c5ebec09452dce93a38bab1d903e08ec5861
tree305d9599ec8d521fb15e32fc416d01a80a69f184
parent194c8561ed30e04001aa2dc955019876a754d4a6
proc: delete redundant subset=pid check

Two checks in lookup and readdir code should be enough to not have third
check in open code.

Can't open what can't be looked up?

Link: https://lkml.kernel.org/r/YFYYwIBIkytqnkxP@localhost.localdomain
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/inode.c