diff options
| author | Carlos Llamas <[email protected]> | 2022-03-25 23:24:54 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-04-22 17:21:49 +0200 |
| commit | a8a570c6d0fd9e96d52697133f33962bf08b445b (patch) | |
| tree | faa08efd9b9a0816c8e66c1136fb14a60cdfefbb /tools/perf/scripts/python | |
| parent | e5052bec7e3e460e47d77bbaf13e483b68c710be (diff) | |
binder: hold fd_install until allocating fds first
Al noted in [1] that fd_install can't be undone, so it must come last in
the fd translation sequence, only after we've successfully reserved all
descriptors and copied them into the transaction buffer.
This patch takes Al's proposed fix in [2] and makes a few tweaks to fold
the traversal of t->fd_fixups during release.
[1] https://lore.kernel.org/driverdev-devel/[email protected]
[2] https://lore.kernel.org/driverdev-devel/[email protected]
Cc: Christian Brauner <[email protected]>
Suggested-by: Al Viro <[email protected]>
Acked-by: Todd Kjos <[email protected]>
Signed-off-by: Carlos Llamas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions