Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3404435rwa; Tue, 23 Aug 2022 04:20:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR6angohedUqAgH7RKr9UeuHDHj/ns6zoa5Z/CiISpdyWOVn9Uoov5MKe/YDvOg8zjdlWgEZ X-Received: by 2002:a63:f04f:0:b0:42a:e1e2:5e87 with SMTP id s15-20020a63f04f000000b0042ae1e25e87mr3626084pgj.111.1661253613695; Tue, 23 Aug 2022 04:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253613; cv=none; d=google.com; s=arc-20160816; b=esuQuIZyetg0eRy9tYyPm7iBSJLXsbsBgNl58PaPmMKDrJlHnVe8G/SKt1aC4U3EtA uJ4AsNPgdH4wd2U8dJQWGDJv6KYXPHFve/173bUTTWJA9X/Asgz0AMlOlSnArVXV57rt f1ZBSuVwsKVfFq/C66OG8MlW5B3DP5MHzTN/cXNWj4FZxD8pit7Y2yhwpffM8VuttDIG pTRzeJxixpOY6IGNP9RWp51HtQqei7KpNXc1CMBdO9dSrDE2zh3kJ/uQCVfTLEFB5goq Kfqn8ADpLDKazz1QvmpmfJEgtDzwWEziZtd3fNAvt8JiYlkyh3IKuymeHg7DqPd/kpcS KpLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MrYT6BdaQi+LWEY/68zY436jmIOm6at0H5f+/F3L0PU=; b=jzTLGweYKZ9j/7H36u3YJrD8CfqvNCxPPKTkkF2NDdCKp3Bv7Jnt48D10iT/SitGIe fpatqBq3SpYwhlvn6FMi3/pszmK4PrjUybMTcd0E0FfeOOAfn45eZm9hEnc8xzx1Jygm yY+0EvkT/UmXLzL3gBQQeTVBkz1Pu8FaL3ow6f7XSa2iBiy536qYCPAHMnhu7nDqQydi De5DpnM6/iudiwcmBbNlSw11tE7SKUnC+cHb43NZTwPi9WFmxkqYE9UrzlEf68gppTCJ K0ZBBCw537GpAL2QiOw/Um7glyojTNMFNOpngROLm3V0dlIih82NwGKzbviG8+nxO3tO Ywug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=E5mbqSfX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a170902d4d000b00170a752cae8si13182074plg.115.2022.08.23.04.20.03; Tue, 23 Aug 2022 04:20:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=E5mbqSfX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352823AbiHWKJJ (ORCPT + 99 others); Tue, 23 Aug 2022 06:09:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352637AbiHWKCP (ORCPT ); Tue, 23 Aug 2022 06:02:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDF62A223C; Tue, 23 Aug 2022 01:50:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 901E66122F; Tue, 23 Aug 2022 08:50:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8174CC433D6; Tue, 23 Aug 2022 08:50:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244620; bh=PHEOO4VX3NtboMTjBW2N8IPFgmpRi7rwB6g2Y1tQN/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E5mbqSfXh9uTl8Eem5S7VdahUEp2u4B0KSnSP5s94qCaX1UkPXlZmUy1trEDBc9cx YR/uz2DssCaf/QZdeAVVhv6mpUTxSc9q3TVr5oXSi1Im5IHvXF5d7RKfjmlP5r+XYp dvp0uL20WVQqjq+xHTbxsRRDyltG08zZveRoclY4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Konstantin Komarov Subject: [PATCH 5.15 124/244] fs/ntfs3: uninitialized variable in ntfs_set_acl_ex() Date: Tue, 23 Aug 2022 10:24:43 +0200 Message-Id: <20220823080103.212067936@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080059.091088642@linuxfoundation.org> References: <20220823080059.091088642@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter commit d4073595d0c61463ec3a87411b19e2a90f76d3f8 upstream. The goto out calls kfree(value) on an uninitialized pointer. Just return directly as the other error paths do. Fixes: 460bbf2990b3 ("fs/ntfs3: Do not change mode if ntfs_set_ea failed") Signed-off-by: Dan Carpenter Signed-off-by: Konstantin Komarov Signed-off-by: Greg Kroah-Hartman --- fs/ntfs3/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ntfs3/xattr.c +++ b/fs/ntfs3/xattr.c @@ -561,7 +561,7 @@ static noinline int ntfs_set_acl_ex(stru err = posix_acl_update_mode(mnt_userns, inode, &mode, &acl); if (err) - goto out; + return err; } name = XATTR_NAME_POSIX_ACL_ACCESS; name_len = sizeof(XATTR_NAME_POSIX_ACL_ACCESS) - 1;