diff options
author | Christian Brauner <[email protected]> | 2024-10-10 12:00:03 +0200 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2024-10-30 09:58:02 +0100 |
commit | 2ec67bb4f9c08000982d6aa0e72511bcc83caeb6 (patch) | |
tree | b5c0b8fc842d830247b4e01cefdb37d94a2cb2ad /kernel/kcmp.c | |
parent | 62eec753cae265002043872ba419d0887fe33ec6 (diff) | |
parent | 6a8126f077f9d1f33613c9fa3dbd9a6774c6c4dd (diff) |
Merge branch 'work.fdtable' into vfs.file
Bring in the fdtable changes for this cycle.
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'kernel/kcmp.c')
-rw-r--r-- | kernel/kcmp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/kcmp.c b/kernel/kcmp.c index b0639f21041f..2c596851f8a9 100644 --- a/kernel/kcmp.c +++ b/kernel/kcmp.c @@ -63,9 +63,7 @@ get_file_raw_ptr(struct task_struct *task, unsigned int idx) { struct file *file; - rcu_read_lock(); - file = task_lookup_fdget_rcu(task, idx); - rcu_read_unlock(); + file = fget_task(task, idx); if (file) fput(file); |