We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f402043 commit 125eac2Copy full SHA for 125eac2
fs/xfs/libxfs/xfs_attr_leaf.c
@@ -653,8 +653,8 @@ xfs_attr_shortform_create(
653
ASSERT(ifp->if_flags & XFS_IFINLINE);
654
}
655
xfs_idata_realloc(dp, sizeof(*hdr), XFS_ATTR_FORK);
656
- hdr = (xfs_attr_sf_hdr_t *)ifp->if_u1.if_data;
657
- hdr->count = 0;
+ hdr = (struct xfs_attr_sf_hdr *)ifp->if_u1.if_data;
+ memset(hdr, 0, sizeof(*hdr));
658
hdr->totsize = cpu_to_be16(sizeof(*hdr));
659
xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_ADATA);
660
0 commit comments