|
@@ -3234,7 +3234,7 @@ static void coroutine_fn v9fs_xattrwalk(void *opaque)
|
|
xattr_fidp->fid_type = P9_FID_XATTR;
|
|
xattr_fidp->fid_type = P9_FID_XATTR;
|
|
xattr_fidp->fs.xattr.xattrwalk_fid = true;
|
|
xattr_fidp->fs.xattr.xattrwalk_fid = true;
|
|
if (size) {
|
|
if (size) {
|
|
- xattr_fidp->fs.xattr.value = g_malloc(size);
|
|
|
|
|
|
+ xattr_fidp->fs.xattr.value = g_malloc0(size);
|
|
err = v9fs_co_llistxattr(pdu, &xattr_fidp->path,
|
|
err = v9fs_co_llistxattr(pdu, &xattr_fidp->path,
|
|
xattr_fidp->fs.xattr.value,
|
|
xattr_fidp->fs.xattr.value,
|
|
xattr_fidp->fs.xattr.len);
|
|
xattr_fidp->fs.xattr.len);
|
|
@@ -3267,7 +3267,7 @@ static void coroutine_fn v9fs_xattrwalk(void *opaque)
|
|
xattr_fidp->fid_type = P9_FID_XATTR;
|
|
xattr_fidp->fid_type = P9_FID_XATTR;
|
|
xattr_fidp->fs.xattr.xattrwalk_fid = true;
|
|
xattr_fidp->fs.xattr.xattrwalk_fid = true;
|
|
if (size) {
|
|
if (size) {
|
|
- xattr_fidp->fs.xattr.value = g_malloc(size);
|
|
|
|
|
|
+ xattr_fidp->fs.xattr.value = g_malloc0(size);
|
|
err = v9fs_co_lgetxattr(pdu, &xattr_fidp->path,
|
|
err = v9fs_co_lgetxattr(pdu, &xattr_fidp->path,
|
|
&name, xattr_fidp->fs.xattr.value,
|
|
&name, xattr_fidp->fs.xattr.value,
|
|
xattr_fidp->fs.xattr.len);
|
|
xattr_fidp->fs.xattr.len);
|