aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/namei.c b/fs/namei.c
index ec638d27642f..5dbc3f836934 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -130,6 +130,10 @@ getname_flags(const char __user *filename, int flags, int *empty)
130 char *kname; 130 char *kname;
131 int len; 131 int len;
132 132
133 result = audit_reusename(filename);
134 if (result)
135 return result;
136
133 /* FIXME: create dedicated slabcache? */ 137 /* FIXME: create dedicated slabcache? */
134 result = kzalloc(sizeof(*result), GFP_KERNEL); 138 result = kzalloc(sizeof(*result), GFP_KERNEL);
135 if (unlikely(!result)) 139 if (unlikely(!result))