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 445B3C43334 for ; Sun, 12 Jun 2022 13:39:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8DF8B10E3AA; Sun, 12 Jun 2022 13:39:48 +0000 (UTC) Received: from mailrelay4-1.pub.mailoutpod1-cph3.one.com (mailrelay4-1.pub.mailoutpod1-cph3.one.com [46.30.210.185]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5F12B10E3AA for ; Sun, 12 Jun 2022 13:39:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=vGSOGlL/Fo6DWQWsi20ZxrQ6m6OCC7fuZ+QqL2t6LGM=; b=CO1ibQh8tuJ+jcj3wigoYTkQ6M7jY+MJfqG7ZJH+BqY4qJEqgTcjDR024HJEtVLETrLOM4yAoKXWN BDrAMlu6wlj87vR0jKrrMYoI1mCakJOE+YpLuHheAOcE1QG3LmWRYh/Ddd/yvmvStoXg5KDzwMUOLb /Ii+3uzQyq4H/6R+CaWndjXiKE76fM99RyBFqbKP8N2TQxtSiBn4qBNXuc9bPMqnuvxlWdfQYfXKRd 8rQlkjbyuF+EKxcQfzbDQZ0aOlP3Hv+RjQ9301+kUWrcv0GjlZbwHQa0BZ+VWqpZsESNXCahHRE/7R pvfnwYLJora+f4y3V5QwEMXDQv1sqJA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=vGSOGlL/Fo6DWQWsi20ZxrQ6m6OCC7fuZ+QqL2t6LGM=; b=+Gg0/mtUW7/iMZJIyCQglQX4WXHV1fs0N9D63sR/biinY8CT1Jqk/0rFIZEoAQejXY97pG/ZHvRXN LQjHXOeBg== X-HalOne-Cookie: 135f1373e28a677e4fa063e1addc7fd567c4199f X-HalOne-ID: 1ed2ae77-ea55-11ec-8231-d0431ea8bb10 Received: from mailproxy3.cst.dirpod3-cph3.one.com (80-162-45-141-cable.dk.customer.tdc.net [80.162.45.141]) by mailrelay4.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 1ed2ae77-ea55-11ec-8231-d0431ea8bb10; Sun, 12 Jun 2022 13:39:45 +0000 (UTC) Date: Sun, 12 Jun 2022 15:39:43 +0200 From: Sam Ravnborg To: Marek Vasut Subject: Re: [PATCH 2/3] drm/bridge: tc358775: Fix drm_of_get_data_lanes_count_ep conversion Message-ID: References: <20220612132152.91052-1-marex@denx.de> <20220612132152.91052-2-marex@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220612132152.91052-2-marex@denx.de> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel test robot , Maxime Ripard , dri-devel@lists.freedesktop.org, robert.foss@linaro.org, Laurent Pinchart , Andrzej Hajda Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Sun, Jun 12, 2022 at 03:21:51PM +0200, Marek Vasut wrote: > Initialize dsi_lanes to -1, so that in case the endpoint is missing, > probe would fail as it did before the conversion, instead of depending > on uninitialized variable and thus undefined behavior. > > Fixes: 56426faa1492 ("drm/bridge: tc358775: Convert to drm_of_get_data_lanes_count_ep") > Reported-by: kernel test robot > Signed-off-by: Marek Vasut > Cc: Andrzej Hajda > Cc: Laurent Pinchart > Cc: Lucas Stach > Cc: Maxime Ripard > Cc: Robert Foss > Cc: Sam Ravnborg > To: dri-devel@lists.freedesktop.org Acked-by: Sam Ravnborg