getxattr: kzalloc/vmalloc mismatch

From: Joe Perches
Date: Wed Jun 19 2013 - 14:53:35 EST


It seems the kzalloc could be kmalloc instead.

(it's filled by xattr_getsecurity)

in fs/xattr.c:

static ssize_t
getxattr(struct dentry *d, const char __user *name, void __user *value,
size_t size)
{
[]
if (size) {
if (size > XATTR_SIZE_MAX)
size = XATTR_SIZE_MAX;
kvalue = kzalloc(size, GFP_KERNEL | __GFP_NOWARN);
if (!kvalue) {
vvalue = vmalloc(size);
if (!vvalue)
return -ENOMEM;
kvalue = vvalue;
}
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/