Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3402952rwa; Tue, 23 Aug 2022 04:18:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR4x4a1K63UFHE5epCwjigZUkThfLra9dvkmSO40mobhWaXGpzDV7shRmCHRGq7R5outLiOn X-Received: by 2002:a17:90b:4b89:b0:1f5:68b:b14e with SMTP id lr9-20020a17090b4b8900b001f5068bb14emr2938868pjb.30.1661253528113; Tue, 23 Aug 2022 04:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253528; cv=none; d=google.com; s=arc-20160816; b=UQAtOAFz+DMD+MQTxBF2tD6K8mYJOy+v4LF+mRQTf33rGX5NoxG0mLDg0RG2hi7NwV LLkZqDjTEzCV2D8gYR8oCIoB+A6/pseOMaTyjxB2zKdk9dXm1eC8G4tmJLeat4L9dzEt fiDHYn+1zVULEZCYkIHg97eUBlhkbJRioapVYLF24gwZlv515a7sapTB9wTvAk8nquHw gXF7CGfUG8wgheL4YTjweq7Pm/zu0GqAJvpB/tsf55aeRPZmkvbYl6svbx9lYrPEwJ7Z J0KBsh+5ObTUnWL9S06/Br7T8o2sYqnqvjN8cMn4YZm+/c10Tvf0hl8BcBJMxgJgcBm8 Gm1Q== 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=IlIgawOiDZKq6kAFtUHn7sjldAMG2NCFHABjMLfKhDE=; b=Rq1w9aEiu+yVIkGao65+k68ySTEty2JkWRXaK5rx3IMP+XkhNqON8uWN1PfJdV7V3k 0xY2YsdvtjAqhTaZHVrv5uZNZRlChmL07cOuA71OnX3upzl2ceHP3sO1OJhufLT36RzC fQh6QHKfpN/LVsyaI0bM3Hz08R5dYHuBY8NRAP8jpA2c/2Carc4re+/3UQBmdX7Z7amW SF437GmxnxZsYf/wh1BOnFAnKF2YPUx82vsTtmKRF73o4p7tn3/Yv8JXDlnRCdiQCaad yB5WrmZ2y2DTBMYn6RcoDeoVr5bSunAuIqyHC+pDReVGH+AoJ9aVJrVvuQNJaxzm3qZr tTiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pLww8JaN; 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 q18-20020a170902f79200b001726a59e2desi13770211pln.133.2022.08.23.04.18.35; Tue, 23 Aug 2022 04:18:48 -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=pLww8JaN; 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 S1348860AbiHWKFO (ORCPT + 99 others); Tue, 23 Aug 2022 06:05:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351935AbiHWKA4 (ORCPT ); Tue, 23 Aug 2022 06:00:56 -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 516D462F7; Tue, 23 Aug 2022 01:48:26 -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 8BA90B81C35; Tue, 23 Aug 2022 08:48:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0641C433C1; Tue, 23 Aug 2022 08:48:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244503; bh=Rb8RqMWonuLosEt81hl+n3DDIYofEdVxfe5kXGS+gVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pLww8JaNb8wYNR290wJQgw0n1z0ZepjMKdsbAW+EEgjU+O1BbpvcUDhcGW4V8Z/BB EK2luMmAxVQ7iBHkRaLv7lJyYwc/lAQZ5b/Mu72QToX2HHbsWam1DQ7pl9kyw/CQR0 6DMWYbvMeOb2cnb8r7RjtAf6lANIZ6tYo2ZqSfHI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yan Lei , Konstantin Komarov Subject: [PATCH 5.15 103/244] fs/ntfs3: Fix using uninitialized value n when calling indx_read Date: Tue, 23 Aug 2022 10:24:22 +0200 Message-Id: <20220823080102.463502199@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: Yan Lei commit ae5a4e46916fc307288227b64c1d062352eb93b7 upstream. This value is checked in indx_read, so it must be initialized Fixes: 82cae269cfa9 ("fs/ntfs3: Add initialization of super block") Signed-off-by: Yan Lei Signed-off-by: Konstantin Komarov Signed-off-by: Greg Kroah-Hartman --- fs/ntfs3/index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/ntfs3/index.c +++ b/fs/ntfs3/index.c @@ -1994,7 +1994,7 @@ static int indx_free_children(struct ntf const struct NTFS_DE *e, bool trim) { int err; - struct indx_node *n; + struct indx_node *n = NULL; struct INDEX_HDR *hdr; CLST vbn = de_get_vbn(e); size_t i;