Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99188C10F05 for ; Fri, 8 Dec 2023 15:02:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A7A5810E2C6; Fri, 8 Dec 2023 15:02:04 +0000 (UTC) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id 260BF10E2C6; Fri, 8 Dec 2023 15:02:02 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 7B548B82D57; Fri, 8 Dec 2023 15:02:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E0E3C433C8; Fri, 8 Dec 2023 15:01:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702047719; bh=pnQ8N99W3YxXYPpnKiMZZ1nS5sELs3DAuG+uc/lYQ7c=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=MsSZGjZw1SqSdj46XgrTk8vZO/dZ7qITb2Z8T6sO/DGaHkcimKLd/FBw2NHKzjSsI JLYcXT0QRLRjnXHxYtalKbB2TuRDdQcfoj6wj/iGV2UhHwfiDbosORN4HAzk2kOVS9 uCLxsGTHPcTdtESknXUldycvYrPim0XVvxhuxVwbZR0YRxm5XAj4D/526qtCB5N6NN fOZ31POhuuH4EFRNp4p7g200nuRcMoyQ5pPvL01uWebaKO4I2vc11VgQo+UNAuWhFA f6s/3QgxxCWZvCOPdhc5k9IrpEY/pc7RwpQGv+/6gfAqJPEc/6Mmi481nSK62/bppa mznVotkihHq4w== From: Maxime Ripard To: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, Jani Nikula In-Reply-To: <20231208131238.2924571-1-jani.nikula@intel.com> References: <20231208131238.2924571-1-jani.nikula@intel.com> Subject: Re: (subset) [PATCH] drm/crtc: fix uninitialized variable use Message-Id: <170204771724.64836.9399028897940747949.b4-ty@kernel.org> Date: Fri, 08 Dec 2023 16:01:57 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.12.3 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ziqi Zhao , syzbot+4fad2e57beb6397ab2fc@syzkaller.appspotmail.com, Thomas Zimmermann Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Fri, 08 Dec 2023 15:12:38 +0200, Jani Nikula wrote: > Commit 3823119b9c2b ("drm/crtc: Fix uninit-value bug in > drm_mode_setcrtc") was supposed to fix use of an uninitialized variable, > but introduced another. > > num_connectors is only initialized if crtc_req->count_connectors > 0, > but it's used regardless. Fix it. > > [...] Applied to drm/drm-misc (drm-misc-fixes). Thanks! Maxime