From patchwork Thu Aug 20 09:19:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 265572 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0648C433E3 for ; Thu, 20 Aug 2020 11:20:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C64942078D for ; Thu, 20 Aug 2020 11:20:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597922412; bh=2TtNXNa8iMW4REURFARyXwapDksZkPC7BzZq5kPtCvI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=bxPWxFW1jNdltLBV8DUeN1QP0e0/G+kvvwrpPnnenVqy4JfnRa86Vm9d3Lz1PdS5I G938UM/jXABUHRTmYxgSRg5CLlpf/4N9artIWPukXx8VJIXRGU/iO7ecq0/iwHsGx6 yXZGsRvNUMJFZ/nAehSDttJSBSlDTc4zlwqGbxbc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727013AbgHTLUL (ORCPT ); Thu, 20 Aug 2020 07:20:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:38336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730548AbgHTKHn (ORCPT ); Thu, 20 Aug 2020 06:07:43 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 242F52075E; Thu, 20 Aug 2020 10:07:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597918058; bh=2TtNXNa8iMW4REURFARyXwapDksZkPC7BzZq5kPtCvI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=06Te27rlxDVHaCCNrmzJIVwGaY/8uXpUA+Rt6Ci4TYA4YNiYnf/ya77SxUVIJ11zC HRduOQD57DVu4yaPXewqgwTC/yYluJJOnN4A+PCvD7SQV4L9bcc/fZcTenz4Swt5xz j7uL88YwGD+fiswfsS22vBhokwNhT8E9mIhgfvaw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Skeggs , Sasha Levin Subject: [PATCH 4.14 021/228] drm/nouveau/fbcon: zero-initialise the mode_cmd2 structure Date: Thu, 20 Aug 2020 11:19:56 +0200 Message-Id: <20200820091608.591615474@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091607.532711107@linuxfoundation.org> References: <20200820091607.532711107@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Ben Skeggs [ Upstream commit 15fbc3b938534cc8eaac584a7b0c1183fc968b86 ] This is tripping up the format modifier patches. Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin --- drivers/gpu/drm/nouveau/nouveau_fbcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c index ee8f744dc4881..9ffb09679cc4a 100644 --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c @@ -310,7 +310,7 @@ nouveau_fbcon_create(struct drm_fb_helper *helper, struct nouveau_framebuffer *fb; struct nouveau_channel *chan; struct nouveau_bo *nvbo; - struct drm_mode_fb_cmd2 mode_cmd; + struct drm_mode_fb_cmd2 mode_cmd = {}; int ret; mode_cmd.width = sizes->surface_width;