diff options
| author | Thomas Bertschinger <[email protected]> | 2025-08-14 23:54:28 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-08-15 13:46:57 +0000 |
| commit | b5ca88927e353185b3d9ac4362d33e5aeb25771f (patch) | |
| tree | 8963af05685424175f311b1ca0aee10cab214032 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | module: Rename EXPORT_SYMBOL_GPL_FOR_MODULES to EXPORT_SYMBOL_FOR_MODULES (diff) | |
| download | kernel-b5ca88927e353185b3d9ac4362d33e5aeb25771f.tar.gz kernel-b5ca88927e353185b3d9ac4362d33e5aeb25771f.zip | |
fhandle: do_handle_open() should get FD with user flags
In f07c7cc4684a, do_handle_open() was switched to use the automatic
cleanup method for getting a FD. In that change it was also switched
to pass O_CLOEXEC unconditionally to get_unused_fd_flags() instead
of passing the user-specified flags.
I don't see anything in that commit description that indicates this was
intentional, so I am assuming it was an oversight.
With this fix, the FD will again be opened with, or without, O_CLOEXEC
according to what the user requested.
Fixes: f07c7cc4684a ("fhandle: simplify error handling")
Signed-off-by: Thomas Bertschinger <[email protected]>
Link: https://lore.kernel.org/[email protected]
Reviewed-by: Amir Goldstein <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
