From dbf5feaf785066596ebae86f8e787bbefc1af52f Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 9 Sep 2005 15:42:34 -0700 Subject: [PATCH] --- yaml --- r: 8296 b: refs/heads/master c: ac5b8b6f22118620cd1133d9943b1f31dc40a913 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/compat.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index d2fbc5f2be72..ce131bf8ba3f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f0eca9626c6becb6fc56106b2e4287c6c784af3d +refs/heads/master: ac5b8b6f22118620cd1133d9943b1f31dc40a913 diff --git a/trunk/fs/compat.c b/trunk/fs/compat.c index c2e0813164b4..ac3fb9ed8eea 100644 --- a/trunk/fs/compat.c +++ b/trunk/fs/compat.c @@ -1645,8 +1645,10 @@ compat_sys_select(int n, compat_ulong_t __user *inp, compat_ulong_t __user *outp goto out_nofds; /* max_fdset can increase, so grab it once to avoid race */ + rcu_read_lock(); fdt = files_fdtable(current->files); max_fdset = fdt->max_fdset; + rcu_read_unlock(); if (n > max_fdset) n = max_fdset;