aboutsummaryrefslogtreecommitdiff
path: root/kernel/kcmp.c
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2024-10-10 12:00:03 +0200
committerChristian Brauner <[email protected]>2024-10-30 09:58:02 +0100
commit2ec67bb4f9c08000982d6aa0e72511bcc83caeb6 (patch)
treeb5c0b8fc842d830247b4e01cefdb37d94a2cb2ad /kernel/kcmp.c
parent62eec753cae265002043872ba419d0887fe33ec6 (diff)
parent6a8126f077f9d1f33613c9fa3dbd9a6774c6c4dd (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.c4
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);