diff options
Diffstat (limited to 'fs/xattr.c')
-rw-r--r-- | fs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xattr.c b/fs/xattr.c index 9b932b95d74e..f0da9d24e9ca 100644 --- a/fs/xattr.c +++ b/fs/xattr.c | |||
@@ -442,7 +442,7 @@ getxattr(struct dentry *d, const char __user *name, void __user *value, | |||
442 | size = XATTR_SIZE_MAX; | 442 | size = XATTR_SIZE_MAX; |
443 | kvalue = kzalloc(size, GFP_KERNEL | __GFP_NOWARN); | 443 | kvalue = kzalloc(size, GFP_KERNEL | __GFP_NOWARN); |
444 | if (!kvalue) { | 444 | if (!kvalue) { |
445 | vvalue = vmalloc(size); | 445 | vvalue = vzalloc(size); |
446 | if (!vvalue) | 446 | if (!vvalue) |
447 | return -ENOMEM; | 447 | return -ENOMEM; |
448 | kvalue = vvalue; | 448 | kvalue = vvalue; |