Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1877973pxb; Fri, 5 Mar 2021 01:41:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMtZCWU0EAsur5uc/OoDUUZFasIDb8IqDV152wfelKbcg3D5c+rlhdgB8nk+9yA/UJnIfH X-Received: by 2002:a17:906:565a:: with SMTP id v26mr1546938ejr.516.1614937289621; Fri, 05 Mar 2021 01:41:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614937289; cv=none; d=google.com; s=arc-20160816; b=VisjSuN1XpjbskLW0W0WbwKuSin7luy9Nrj8bYGFIRQRZvaEnbMYN8AQfhTZCicdLF EIrwM4hR66QtngfbmszZ+YOskBRKqGGVs/DIq66VrOfegjkPuGhKC6au6Nr5+f2UdIcL nmxaA115AYip4Mb7L/BBXKgxCX0M6D/2U8GWEolBCQOGxGPOGggDwQiVrv7+km5qcoyH fTdDCQYb3QvZPgAahLUltucPPW0MOPgJtDrXinIAupWhGpvnC40wjt84LkpJAuzBjbst EF9fe3ycco1uyBqTg/EDojuaVpDxku/q8RihgDoEGyPLf4NffERhOn27vRw8/B7Md5Go GREQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q6N/JHvwR3DDe0EEB+dV0FhguwPKEzi443GmKZ0bZ4c=; b=IhZF9hgHzvr3lt3rzuVey1kp8105ybhldOPVl+g5lWIhmp9j1dDkOBatepZy6u7IVB y86V3kftD0cWt32KgetrI5QGxG5q8yyvzkMZogMDCoGmpQUqVsb3SYdZXU1cdCeFmfRP KDoJ8zxWGNmnJPLKhHbbcOiZu5JG7pcHlUXQEuCWbtxMXmVx3cpmIbIJfR2bJKwslQGR Jy85tttXhHz5MD97rft21DaGZ75P+GrqSO8CHjkPJ0cQ7cueX6fOSkhF7wKsTOUxO78N VRlRKt8dJrkWbOuILzIb6qw1vpLNYitNhwNgx0EDc/tH9sWYPsNdmrrlnr3qLTiFGLy7 e6GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="EgdvEfI/"; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x16si1301383edd.234.2021.03.05.01.41.06; Fri, 05 Mar 2021 01:41:29 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b="EgdvEfI/"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229464AbhCEJkK (ORCPT + 99 others); Fri, 5 Mar 2021 04:40:10 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:48121 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbhCEJkB (ORCPT ); Fri, 5 Mar 2021 04:40:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614937198; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Q6N/JHvwR3DDe0EEB+dV0FhguwPKEzi443GmKZ0bZ4c=; b=EgdvEfI/mfR1604gcY1vH3cIHaLnsp/gXNufyjUIEuL+Qzqv7Qx32uE7RjZe+i6acCCQmO rJqib7VWlzVQnD5E+3s9i390c5iNm4jSstWXmG1six4si3rz62dWGcNRLnYjRr/SZmuVm+ yHcpAYzY6MzGcyt3YOwKd8i/ltpfzAE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-256-dgJAmS8ZNp2A4lgOGFa89w-1; Fri, 05 Mar 2021 04:39:56 -0500 X-MC-Unique: dgJAmS8ZNp2A4lgOGFa89w-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 26F4B108BD06; Fri, 5 Mar 2021 09:39:55 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-114-10.ams2.redhat.com [10.36.114.10]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 54E051002382; Fri, 5 Mar 2021 09:39:54 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 5BEA018000AE; Fri, 5 Mar 2021 09:22:41 +0100 (CET) Date: Fri, 5 Mar 2021 09:22:41 +0100 From: Gerd Hoffmann To: Colin King Cc: Dave Airlie , David Airlie , Daniel Vetter , virtualization@lists.linux-foundation.org, spice-devel@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] qxl: Fix uninitialised struct field head.surface_id Message-ID: <20210305082241.dt53hczrvds3qoz2@sirius.home.kraxel.org> References: <20210304094928.2280722-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210304094928.2280722-1-colin.king@canonical.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 04, 2021 at 09:49:28AM +0000, Colin King wrote: > From: Colin Ian King > > 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 Pushed to drm-misc-fixes. thanks, Gerd