]> git.ipfire.org Git - thirdparty/linux.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)
commit02e5ad973883c36c0868b301b8357d9c455bb91c
tree635b3f2fd1cfa94597a1dfa12b018661b114a454
parent8811249f0cfdd6552152173f881fddc7f20f427e
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