aboutsummaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/open.c b/fs/open.c
index 40d1fa25f5aa..31191bf513e4 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -959,6 +959,8 @@ struct file *dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags,
959 int error; 959 int error;
960 struct file *f; 960 struct file *f;
961 961
962 validate_creds(cred);
963
962 /* 964 /*
963 * We must always pass in a valid mount pointer. Historically 965 * We must always pass in a valid mount pointer. Historically
964 * callers got away with not passing it, but we must enforce this at 966 * callers got away with not passing it, but we must enforce this at