aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-12-22 12:25:34 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-22 12:25:34 -0800
commit2af10844eb6ed104f9505bf3a7ba3ceb02264f31 (patch)
tree8a00024ff525b22379ea90a78ac3222db5a73062 /fs/namei.c
parent73bc7d315f56e260071bdb5f15e25b53bddc1402 (diff)
parent90a8a73c06cc32b609a880d48449d7083327e11a (diff)
downloadkernel_samsung_crespo-2af10844eb6ed104f9505bf3a7ba3ceb02264f31.zip
kernel_samsung_crespo-2af10844eb6ed104f9505bf3a7ba3ceb02264f31.tar.gz
kernel_samsung_crespo-2af10844eb6ed104f9505bf3a7ba3ceb02264f31.tar.bz2
USB: Merge 2.6.37-rc5 into usb-next
This is to resolve the conflict in the file, drivers/usb/gadget/composite.c that was due to a revert in Linus's tree needed for the 2.6.37 release. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 5362af9..4ff7ca5 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1748,6 +1748,9 @@ struct file *do_filp_open(int dfd, const char *pathname,
if (!(open_flag & O_CREAT))
mode = 0;
+ /* Must never be set by userspace */
+ open_flag &= ~FMODE_NONOTIFY;
+
/*
* O_SYNC is implemented as __O_SYNC|O_DSYNC. As many places only
* check for O_DSYNC if the need any syncing at all we enforce it's