]> 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)
commite06c40858eccb328e6a50440ff4f61e333224593
tree305d9599ec8d521fb15e32fc416d01a80a69f184
parent67adad7b7f0427b7bab06f22dc2fc845bd23bf7c
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