summaryrefslogtreecommitdiff
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, 2 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 5fe6cac48df8..58f715f7657e 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -790,8 +790,8 @@ static bool nd_alloc_stack(struct nameidata *nd)
{
struct saved *p;
- p= kmalloc_array(MAXSYMLINKS, sizeof(struct saved),
- nd->flags & LOOKUP_RCU ? GFP_ATOMIC : GFP_KERNEL);
+ p= kmalloc_objs(struct saved, MAXSYMLINKS,
+ nd->flags & LOOKUP_RCU ? GFP_ATOMIC : GFP_KERNEL);
if (unlikely(!p))
return false;
memcpy(p, nd->internal, sizeof(nd->internal));