From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 499F3C4167B for ; Wed, 6 Dec 2023 14:54:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442090AbjLFOyn (ORCPT ); Wed, 6 Dec 2023 09:54:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378966AbjLFOyl (ORCPT ); Wed, 6 Dec 2023 09:54:41 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 756A89A for ; Wed, 6 Dec 2023 06:54:47 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3B6EsXxE128218; Wed, 6 Dec 2023 08:54:33 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1701874473; bh=cchmRciyrUYABynTI+mAA/+ZA05JUtndixA4qxWkWw8=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=x10u0Mu7Qeb3VOdQ8pNTF0pNdc6sQ0TfT4N7m1FYAx1BM+AHbgZf0AYyCVmTaTXCJ aV2+n+rtyPBFYhjOBe5KlDGo0qIkTSFMSBTKrjX8fsMXHhSPS+0zxxRCGrbMpncGwJ oiIKUK8NVsqkhdeZX/e2oE46SCkjUpyTtaDlCF9g= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3B6EsX2t098805 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 6 Dec 2023 08:54:33 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 6 Dec 2023 08:54:33 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 6 Dec 2023 08:54:33 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3B6EsWZa027090; Wed, 6 Dec 2023 08:54:32 -0600 Date: Wed, 6 Dec 2023 08:54:32 -0600 From: Nishanth Menon To: Dmitry Baryshkov CC: Marek Szyprowski , , , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Neil Armstrong Subject: Re: [PATCH] drm/debugfs: fix potential NULL pointer dereference Message-ID: <20231206145432.5sgkzwe7q33cjw3z@encode> References: <20231205130631.3456986-1-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15:19-20231205, Dmitry Baryshkov wrote: > On Tue, 5 Dec 2023 at 15:06, Marek Szyprowski wrote: > > > > encoder->funcs entry might be NULL, so check it first before calling its > > methods. This fixes NULL pointer dereference observed on Rasberry Pi > > 3b/4b boards. > > > > Fixes: caf525ed45b4 ("drm/encoder: register per-encoder debugfs dir") > > Signed-off-by: Marek Szyprowski > > Reviewed-by: Dmitry Baryshkov Tested-by: Nishanth Menon Fixed multiple platform boot fails on TI K3 SoC family including BeaglePlay, BeagleBone-AI64. -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D