Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3293058rwa; Tue, 23 Aug 2022 02:08:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6ToGg2tLYUQ45RVohw8X+FhzHLt8FOL90lm7zxFgpZsuWThr3FVSqzxdAELYA4qgQxm/DN X-Received: by 2002:a05:6402:4252:b0:446:ef32:b3fd with SMTP id g18-20020a056402425200b00446ef32b3fdmr2910027edb.374.1661245712526; Tue, 23 Aug 2022 02:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661245712; cv=none; d=google.com; s=arc-20160816; b=zcGp1FDFsg1gd4UT0N1gNVgCwJHtPvmeVDBF/Km3UWsIVcQpmY+IdBplbBG6zQeq1g 2bHKUZ/vhkjXrqOCZJ6h7wvnqIFo6WcCqx77qidHqpQD2BUW2daozTSm/4jYLKN9UNoL xh80/lxxlFPIAhKRCwfo6yduONCZSR9nxFKZwmS2R7HOfylZE0A/8SsYPpm/6cTv3OwY uPKtAS/5Xi2kqDbLe59Gz/OdEM0ye8ocZWPFpMhT2JXjiwbTV3cQqVnUdMawyhhFod3F pCtjjJeWzHK0o3J2FGYWt1EVnVLvwds1ZAkPc5A/P+3R+2nVtvitPeGOgLkfCKf2dqzP Atxw== 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=eL5Nskg1qiwJj2x1bLTOns+v186/GRISvQfTbSqjJbk=; b=XVWkqnAk3WOBD4OiztLujA514NUs6lNT3xOnGqgR8sfJZ06nAbggG4Vmypx5J7yLSu cm+COJDygKcoimJKKx7NhVVQVZGhuT+QzeOd11VNggMqVZjgCr2ACJ7dMWJLa9Jl4Oy2 FZhnxsShxaUcnaWghw0XIBpreoMN1AhovKj6A/DPd1yeSp7b6P8aAie/H0BIH1nwidgG GdP89Uny2s3r8KEeXqbJ/8QMPRaANLp0OBwUSfA5z7wQZTZCTAWV+5I/Mw8cR0cOWM7e zm2S4mbAZG95RaZ/O6lvrTOY+ega0IJRU7aDQeMMNXnxCuZTuXltqHv5D1zZM3MJ1YzZ JmPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YadK4iee; 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 qw16-20020a1709066a1000b0073d87835a30si2324064ejc.961.2022.08.23.02.08.04; Tue, 23 Aug 2022 02:08:32 -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=YadK4iee; 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 S1347385AbiHWIos (ORCPT + 99 others); Tue, 23 Aug 2022 04:44:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237106AbiHWImI (ORCPT ); Tue, 23 Aug 2022 04:42:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 491ED7AC37; Tue, 23 Aug 2022 01:20:11 -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 ams.source.kernel.org (Postfix) with ESMTPS id A6572B81C29; Tue, 23 Aug 2022 08:19:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B110C43146; Tue, 23 Aug 2022 08:19:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661242755; bh=h1N/HoQ8SFj1jwD/J82TZXKjDUAy/w3HkBlEkMlSijw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YadK4ieeImcfB2mpp6851h7QvvqZCfCNg2MgJoIwWVG/AEKWkTtMpjaUsHElg9KUT UBUYYqMl2B2sEoOdMtKqyxvOXfBTw6Y5ExSzy/fZIH3VaFDtbV8bv6/24hHDmFeoC8 eo6bSRSRAT4+GNR+SoCOho7l0dcJfBWrJRnhAeRg= 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.19 190/365] fs/ntfs3: uninitialized variable in ntfs_set_acl_ex() Date: Tue, 23 Aug 2022 10:01:31 +0200 Message-Id: <20220823080126.174240101@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@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 @@ -563,7 +563,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;