]> git.baikalelectronics.ru Git - kernel.git/commit
perf_event_get(): don't bother with fget_raw()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Jun 2019 00:43:53 +0000 (20:43 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Jun 2019 00:43:53 +0000 (20:43 -0400)
commit0e0e3255f60f274ac2c3d2e149c4146b1209a100
tree635b3f2fd1cfa94597a1dfa12b018661b114a454
parentcc669a44b48b418bdcdfcb0016f9decb5d91acd3
perf_event_get(): don't bother with fget_raw()

... since we immediately follow that with check that it *is* an
opened perf file, with O_PATH ones ending with with the same
-EBADF we'd get for descriptor that isn't opened at all.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/events/core.c