Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3521547pxf; Mon, 15 Mar 2021 11:24:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhjE8RjFEuq9+588HpiqP/T/bl97Jrp8MOcnVkscTVbfkHHP8kh0OkPoHK76APtaVAWU9a X-Received: by 2002:a17:906:16ca:: with SMTP id t10mr25522874ejd.85.1615832677468; Mon, 15 Mar 2021 11:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832677; cv=none; d=google.com; s=arc-20160816; b=HXNYFMPGedX8xPU/pa/mS/72Nr6dLJ5YHpfE72E9vDPfnyK8tjkoE5u72/sVO+m3dP P/YgBgfnjGhCb4/vy/oCpUEOmEU7fW1+EesIbZFlD1eKNaXsXLq/bFonM3DD7Wk6BBHF pW5YxMJgvIZDzrFdt8g9PgFRyEdGm8+LOt0EwdhjFnPyynzFcCTLJ+/+RjUVjQcH8OQU O7GJ3O6b4BjBdGHenTEcO2pSNJtZvLDz0MYKaldugj34+ORhjN2jHYyBKHz4BGpa9lCq YLKR+iJcoZa+sv7mTXNr3hSSXcTEPYNrHHfZ5qbYX23bygKj58aGlwLAJ2Zf5j/PdsPD pEpg== 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=+DVhTjEEncGcm182TrQ5dO7tvb121RSjLixFqGGd9jg=; b=u/ggMpE6htOvvJ6fRq9l0D/hFOGSt37nmaU1pHgR0125RsDsUURjxBQs++iUJ+lBBj cUkqZtCsxURSjpUbVKk0kwuiUtxbnl/iFPOqq5uA/f9xnhnYSodW8AD56Wn7nrwAAMBs IbWttmtXiG1ciH8c0CtS/UT1O6HPM/5pqoBif0466fp8nlEijeO2ZnJCXoc6g5EoC1C8 oanuP7abuDXnHJomiSW7tqN6YyA9gWjYGqhWw7AIlmIyW4I2ctMRly6RrPmNoMQvnn+p EyDGogxL5Q8UDrlwrDDBxNt37VKTSXWqZR0sfVUPXLKM4Hf51YYIvpSuXbuF9OoLZ9fG 3tBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xSJDWDTt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw19si11292867edb.211.2021.03.15.11.24.15; Mon, 15 Mar 2021 11:24:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xSJDWDTt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S238816AbhCOOXq (ORCPT + 99 others); Mon, 15 Mar 2021 10:23:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:38284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232839AbhCOOAB (ORCPT ); Mon, 15 Mar 2021 10:00:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D5AC364F10; Mon, 15 Mar 2021 13:59:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816770; bh=hpWliGdWTSzUspnrrpLNFn+UavCc+KbbZDyvcKJn5OE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xSJDWDTtqsGKjRYZLLHssUrJFAcuCFlZ6TSPI+kQnDp3oajOdBZfHZawqVLlyefq2 EBTxeRhv5KphyYjVcGxTeJWEgV9MG0UJ6cp+l3zysF0PwBT8h5JOf01mewZX946i80 d7cYczdp5H9j6lxGgi+3YxlIEoQ1vuRuaJdBL6Uk= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Gerd Hoffmann , Maarten Lankhorst Subject: [PATCH 5.11 114/306] qxl: Fix uninitialised struct field head.surface_id Date: Mon, 15 Mar 2021 14:52:57 +0100 Message-Id: <20210315135511.495921925@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135507.611436477@linuxfoundation.org> References: <20210315135507.611436477@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Colin Ian King commit 738acd49eb018feb873e0fac8f9517493f6ce2c7 upstream. The surface_id struct field in head is not being initialized and static analysis warns that this is being passed through to dev->monitors_config->heads[i] on an assignment. Clear up this warning by initializing it to zero. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: a6d3c4d79822 ("qxl: hook monitors_config updates into crtc, not encoder.") Signed-off-by: Colin Ian King Link: http://patchwork.freedesktop.org/patch/msgid/20210304094928.2280722-1-colin.king@canonical.com Signed-off-by: Gerd Hoffmann Signed-off-by: Maarten Lankhorst Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/qxl/qxl_display.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c @@ -328,6 +328,7 @@ static void qxl_crtc_update_monitors_con head.id = i; head.flags = 0; + head.surface_id = 0; oldcount = qdev->monitors_config->count; if (crtc->state->active) { struct drm_display_mode *mode = &crtc->mode;