diff options
author | 2024-07-20 01:48:34 -0400 | |
---|---|---|
committer | 2024-11-03 01:28:07 -0500 | |
commit | 66635b0776243ff567db08601546b7f26b67dd08 (patch) | |
tree | 9f7c80007c9a47864612edb5dacd84ce3eb7d8c9 /scripts/lib/kdoc/kdoc_parser.py | |
parent | do_pollfd(): convert to CLASS(fd) (diff) | |
download | linux-rng-66635b0776243ff567db08601546b7f26b67dd08.tar.xz linux-rng-66635b0776243ff567db08601546b7f26b67dd08.zip |
assorted variants of irqfd setup: convert to CLASS(fd)
in all of those failure exits prior to fdget() are plain returns and
the only thing done after fdput() is (on failure exits) a kfree(),
which can be done before fdput() just fine.
NOTE: in acrn_irqfd_assign() 'fail:' failure exit is wrong for
eventfd_ctx_fileget() failure (we only want fdput() there) and once
we stop doing that, it doesn't need to check if eventfd is NULL or
ERR_PTR(...) there.
NOTE: in privcmd we move fdget() up before the allocation - more
to the point, before the copy_from_user() attempt.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions