From: Linus Torvalds Date: Fri, 9 Sep 2005 22:42:34 +0000 (-0700) Subject: Preempt-safe RCU file usage X-Git-Tag: v2.6.14-rc1~258 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ac5b8b6f22118620cd1133d9943b1f31dc40a913;p=linux-2.6-omap-h63xx.git Preempt-safe RCU file usage Fix up fs/compat.c fixes. --- diff --git a/fs/compat.c b/fs/compat.c index c2e0813164b..ac3fb9ed8ee 100644 --- a/fs/compat.c +++ b/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;