diff options
| author | Al Viro <[email protected]> | 2024-07-20 05:48:34 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2024-11-03 06:28:07 +0000 |
| commit | 66635b0776243ff567db08601546b7f26b67dd08 (patch) | |
| tree | 9f7c80007c9a47864612edb5dacd84ce3eb7d8c9 /fs/ext4/fast_commit.c | |
| parent | do_pollfd(): convert to CLASS(fd) (diff) | |
| download | kernel-66635b0776243ff567db08601546b7f26b67dd08.tar.gz kernel-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 <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
