Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1029022rdb; Wed, 6 Dec 2023 06:54:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHNOr8f3eSD3JcZNrJCnV0NTPpLwIILwQfmgeK8rQb2rSBxYeEOR1FVAixJQdXjj4I//oYE X-Received: by 2002:a17:903:22d0:b0:1d0:6ffd:6e69 with SMTP id y16-20020a17090322d000b001d06ffd6e69mr826215plg.97.1701874496945; Wed, 06 Dec 2023 06:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701874496; cv=none; d=google.com; s=arc-20160816; b=sh9d8ZBfq3azXV8ige16UIvFpRWq8t8P8fnGW+Dysv0+hdlwSWKDXa83ZtPZlGAr30 WUI57XtNPjCIofPsio6pULW4r2Mo2O2xvRgtiJWC+6fptZW4WVo1TZHgqB8NjreWp7s/ u1z6esT3RyJu461BcO+lrh3IcEO5tWgumtx8+EUH3PZaqeNEouyX3hzYHaoVu+oQxASW N564LUGQeEhshLup6WrbP4m1+MTtxjV6InjFJFJKguoK5fQC56cFSUnolAmU48wpN4JZ qP0/uXhTZ2/eAshYNrluV9ZSIOQL55eMJR7Hl6q66yyGfF4VPSpZqHUsCQnSp1dOffcD YCbA== 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=cchmRciyrUYABynTI+mAA/+ZA05JUtndixA4qxWkWw8=; fh=TKFqwh0JC/QgJRWvSiYk1+HG+fVFDShYcSwoQLMvFrk=; b=aZ31ObjKK+wNwrTz6bDQvOehwMM1Is/oZ3iURkUMHzdhRGQyWnHvf2rRHyqnWSVsPk YeaXSWR8cWAc66Cj7hlzod7ZcDybCLUr6x4CqlYJt5EoVsES62B7+Y7fyKHWEgsJ8lJ2 4e8FuQZjlQr5zZT9zGtVOgN+Jj5ARSutoBS0jG3riM4x6YOUEfL1T+DSyJTBtOwx7hEq kV2kHrufkPeoudoAiWSF1EpuDmsOlHmUFG8snaxY9rF99XqG9MHnnX9kL+Oy3Jkuqkzd dbb4k5mmX2MBEDmM61p3OArtnoB3sVw4JtAE8YLV05s1wNQJS/1rRDzxkME7+gY7xmsn 4I5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=x10u0Mu7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id z10-20020a1709028f8a00b001cfb971ee07si11295883plo.165.2023.12.06.06.54.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 06:54:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=x10u0Mu7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A64D5826EEA5; Wed, 6 Dec 2023 06:54:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442079AbjLFOym (ORCPT + 99 others); Wed, 6 Dec 2023 09:54:42 -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 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 06 Dec 2023 06:54:54 -0800 (PST) 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