Message ID | 20200921162033.655852337@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=lyed=C6=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EFA76C43465 for <stable@archiver.kernel.org>; Mon, 21 Sep 2020 17:06:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B5A802085B for <stable@archiver.kernel.org>; Mon, 21 Sep 2020 17:06:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600707986; bh=tIOfyw3sGlQevEyMvVuvA1c9woYOZlctdRJSPiBhURs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=HaY9kXpTAwcDxSFknhPtIELePKkdiMcDet2ug+AW3S9ZLOS/IbOedFr2mgrADfWK3 f4bNH2Qg/OUCXOnpEisKlZcB7EUWXIKcD2NKmZEx086vzf8eERrQBAtfDB3UHvwpzn bEn8ALAR/2eNHVk/F4Hu+GNw9vbu/8tjJPFYF+Q0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728528AbgIURGL (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 21 Sep 2020 13:06:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:58550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728529AbgIUQcq (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 21 Sep 2020 12:32:46 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 85A3D23998; Mon, 21 Sep 2020 16:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600705966; bh=tIOfyw3sGlQevEyMvVuvA1c9woYOZlctdRJSPiBhURs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tzwW7WmXxYsk79zHTo1lNURrClmMi/VvAR5QhKap/9P4jKdeYb+I5MtxEgyLh+mDw iGhRXOlxctkisJ5X7mlvnP9IjT96QuzXLdCjLb4HlyFG75upj5+4J9fKf8JW+S4SKY b9nxv0zawsUv/CKbbQj7kYIivFTI0EjPoxzJ4Tmo= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, "Darrick J. Wong" <darrick.wong@oracle.com>, Eric Sandeen <sandeen@redhat.com>, Dave Chinner <dchinner@redhat.com>, Christoph Hellwig <hch@lst.de>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.4 06/46] xfs: initialize the shortform attr header padding entry Date: Mon, 21 Sep 2020 18:27:22 +0200 Message-Id: <20200921162033.655852337@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162033.346434578@linuxfoundation.org> References: <20200921162033.346434578@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/fs/xfs/libxfs/xfs_attr_leaf.c b/fs/xfs/libxfs/xfs_attr_leaf.c index 445a3f2f871fb..da8747b870df3 100644 --- a/fs/xfs/libxfs/xfs_attr_leaf.c +++ b/fs/xfs/libxfs/xfs_attr_leaf.c @@ -514,8 +514,8 @@ xfs_attr_shortform_create(xfs_da_args_t *args) ASSERT(ifp->if_flags & XFS_IFINLINE); } xfs_idata_realloc(dp, sizeof(*hdr), XFS_ATTR_FORK); - hdr = (xfs_attr_sf_hdr_t *)ifp->if_u1.if_data; - hdr->count = 0; + hdr = (struct xfs_attr_sf_hdr *)ifp->if_u1.if_data; + memset(hdr, 0, sizeof(*hdr)); hdr->totsize = cpu_to_be16(sizeof(*hdr)); xfs_trans_log_inode(args->trans, dp, XFS_ILOG_CORE | XFS_ILOG_ADATA); }