Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3511688pxf; Mon, 15 Mar 2021 11:09:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwolR6I28nMtdMkkm/3qZuwixqJWQHyFUSJPHC5RWGfjW4NbhfkvStaT6lO9rBY5DLyeGr6 X-Received: by 2002:a05:6402:38f:: with SMTP id o15mr30992788edv.361.1615831799051; Mon, 15 Mar 2021 11:09:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615831799; cv=none; d=google.com; s=arc-20160816; b=cp67O3Zwm2bQ2JAbRv7FRls/gacNWmiGjlPqG9T0aDvkZ7S41TkvwMQfdOiocByrKN RnqOVKlFQXY0wT7af6ZXO5F4eJ65FvNQMxLZ0fL5dpmQKLZWkpaD4T1/5Y70mrxRppQZ dN+/3BloWk4kviuQ8v4FNfVk9jhHfbNEO2uAHi1Fcuh6slQ0hLpoQATbvijdPXnLFHDW xHFnZrzR/YRDykNLTyCgSUwT1dcXgI6CdybRKv1J40rYhsGnl8UZuDS4cMoPGH7D9oNY HiY4KzgRFsHOoVLRf6tmws1+hAF89XmQFNLTI1HLF0KjsCsLV6GqbK/cTip2/Txo5L4y yk1A== 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=08UCDAE0/9W8MpYFwIdIXQvrg6vMk2WZlGTALmGWPhw=; b=i9BgVsNg6VgQ8pKc+kp25nEgVoWBLcE7ZN8Uo3GGh62J7RUo5HDhGkVBSRQI777iB8 geFYHLVytI81+J+xodLvppcPHvdeI18vd8/P+dBagPHIFyiXD/fy34Xav4lExYm3wWSf AKJzVvCyFim0I+uBes/vBOuW4J2OgZoQnwBVVMiPTikT6WA8BkuBjxcK7Q7+q0SZdkbI YdWP/uWz/BIGSD3iaNbbfsgrgVsHl6ZdLAievNGaqjt5hOuICk8474l+KElw7dWN7YAH mu6zdMBu/uDgdvASEU3udMVKT4zg8rQmRtIHjfEwAPglwqDaw7iYX6C3qpsyPKQHAZCA XjfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sd0xg5H7; 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 cw19si11289705edb.211.2021.03.15.11.09.33; Mon, 15 Mar 2021 11:09:59 -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=sd0xg5H7; 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 S235684AbhCOOKM (ORCPT + 99 others); Mon, 15 Mar 2021 10:10:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:37836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232268AbhCON6R (ORCPT ); Mon, 15 Mar 2021 09:58:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E8E7564F48; Mon, 15 Mar 2021 13:58:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816697; bh=d/6m0GAnzkjYiHDGpoIJWexyllZqew16TVBI1wZGgv0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sd0xg5H7V6TsmzC4hnhagiRXS160Fv6/zyapBh5C6w9VLsdTKs8gVn4B24CYgQute EcbI6MOvHTxUrW1WMU1aJChVpFWtiQscR+OFHEW2jsUKNWHn4XRVYiay4c+M7hred+ D1vpIn9B2aR5MV83EirnsjAGfy5TAeyTUZfv2eNc= 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.4 053/168] qxl: Fix uninitialised struct field head.surface_id Date: Mon, 15 Mar 2021 14:54:45 +0100 Message-Id: <20210315135552.097392061@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135550.333963635@linuxfoundation.org> References: <20210315135550.333963635@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 @@ -325,6 +325,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;