Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3408152rwa; Tue, 23 Aug 2022 04:23:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR7+5SNIFuioIaVO90fts+XBHfIYRWz4DcfNKtzbrPQFaDe8NwI1QvddLeq6xYiTfaqSD/6S X-Received: by 2002:a63:81c7:0:b0:42a:9b7a:1f95 with SMTP id t190-20020a6381c7000000b0042a9b7a1f95mr9577810pgd.401.1661253839683; Tue, 23 Aug 2022 04:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253839; cv=none; d=google.com; s=arc-20160816; b=Ahvl6bfRuirjX012DGG0s0rV6T+RDCmKMg2JPY3EjY4d+peH4Lg4NJ5gLgYRHPieKH KWpq4mpeGiV8BxDI/9S6XSlWygTuLKUlbiD4HT2TUvXlAvkjb8cnry5+UO/UkWUYJ8fG Aewz8uPAInDcc+3nvf7NjeaY7TvTtuVbdBnZeiYS/Ms4kEt+rbwPpMYvK4jT6kF+aEEH KsXC9FGqRBN1pn5fp0L6veF6vWJH5AeoxZEyuebetOIDhZ97qeUyE6k6phj7NUwXZZT7 7WdVCp566ZL5NYyUmhRr5WrNL4jzdmsNOlPO/FQDVdpnQIT6/4UcOC2uPUd89drI9Meo jStQ== 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=bGUopm3+Uu0UBtZUpHlJLYIRjhyFuv1zVBsh7Qa8+SDe0qCw5BlphWzRY6GosfolyQ R4UaGm67BZGd+ueEFzWLWamryVtD+E5I8RO0/w3Ltu9SVfJsaWiQwLQaKNGwYKZ2UcH1 OFSr2/Ky2rbdEXyc7i6qh5aAfw40WM81UHEYcnw/GmiEkxtizJennvD46X2QjTRgibIb ToGY23qkQ5CnOH7pydbA5y94pybLBLWwReNYaWnHpzOX3EHao/FJKqF5KqyOInj1LBR8 Q+60LyKfqkKIt2sqRbztCXPW+8lAah0pTEwiZCBQdvb2C/T7F6AvKRlmjtRZDYEdzu9S BhtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OYT7Djeb; 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 lw18-20020a17090b181200b001fb7350cd1dsi178081pjb.14.2022.08.23.04.23.46; Tue, 23 Aug 2022 04:23:59 -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=OYT7Djeb; 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 S1347183AbiHWIn6 (ORCPT + 99 others); Tue, 23 Aug 2022 04:43:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347604AbiHWIlA (ORCPT ); Tue, 23 Aug 2022 04:41:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E9B15F234; Tue, 23 Aug 2022 01:19:13 -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 2930661360; Tue, 23 Aug 2022 08:17:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D8A3C433D6; Tue, 23 Aug 2022 08:17:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661242670; bh=Rb8RqMWonuLosEt81hl+n3DDIYofEdVxfe5kXGS+gVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OYT7Djebl8/ySjAl7YMKNXWh7UvmaPlL4DVuK55d6HLL2Ft9obw55m+mIXkLuxCvC 6QDWkqD9WAqaZv92EaQjmw5OTCVfO1fcKgjKvIRm+SG9L8VuO0yqI/n0+CIhBO+Eq8 zj39QPTEOxgF+UWfdo2THaCevitfzhsbGB6YZCbg= 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.19 160/365] fs/ntfs3: Fix using uninitialized value n when calling indx_read Date: Tue, 23 Aug 2022 10:01:01 +0200 Message-Id: <20220823080124.909853406@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: 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;