diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2024-07-20 08:48:34 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2024-11-03 09:28:07 +0300 |
commit | 66635b0776243ff567db08601546b7f26b67dd08 (patch) | |
tree | 9f7c80007c9a47864612edb5dacd84ce3eb7d8c9 /scripts/gdb/linux/modules.py | |
parent | 89359897983825dbfc08578e7ee807aaf24d9911 (diff) | |
download | linux-66635b0776243ff567db08601546b7f26b67dd08.tar.xz |
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/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions