]> 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)
commit5d48bae149c14d3f54077116b212ce5713cb3ffd
tree635b3f2fd1cfa94597a1dfa12b018661b114a454
parenta6287447f955eaacee4e5b17916e3998809c5d0e
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