Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1557461rdb; Thu, 7 Dec 2023 02:33:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyiICkhe+xQYchz/uxNFPjZp2hdBgA2MXyZFSKpKm4pdCfuGil7wz1f1d34f+f+e2kzutG X-Received: by 2002:a05:6a20:1456:b0:18f:ec1b:6887 with SMTP id a22-20020a056a20145600b0018fec1b6887mr1606166pzi.34.1701945214402; Thu, 07 Dec 2023 02:33:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701945214; cv=none; d=google.com; s=arc-20160816; b=EKEyxMBT9XL0NNmiyJ6yG6yJwXiV4y+gmxSQk994g5ppJ8ILaBt0otVj1jowaIkOw0 HHaaqhETDFi+0jNgIIKlRLLHI5iWldJH9CnGwqu7UXSeYw904IHztL5hJVXD6y4RgZxE 0m2LdG10znBGtsZLFLP7c0U4P8x7a4sACHurKcriqyMEw/ROzgHx99+yCkGfrdReJrgL RSHQJFBVmt6weo8lgZ9/dARW0MipbPHiFQ/TCGQch4Gau38uXTLbL9ROVKfo00G/5YDE 5gACk9T4hTCY0N1luHZQJPusMP/pe2SamXieASrKDJWHkE+YtfIm92BBdutr+kc3XEaK +b6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0G7EQ5KcNMD+FJBWqkf4cHHplz7DlKiV0y/rovpjNYk=; fh=/5ATnkhEdbOS+C7SbMsrstJX8SCtKlyfkk0FRcqNYGA=; b=bYjdocbwdunznjL0wqlDwZexix0GfIgk/0ULId1cYKA5civ+kBjJ9CM6eF2ccf8H2t f5sUOoqzljrBLgATRCeWwhhm4Mr1jWtTA9RWYPAp7HdY6pDDKJ8GDyX3TdvShrx0facS cGE4Lg9WDZgzMWKDBiN33ykIhyWbhol7/s2spkorTlw/vTUsQEhnZjuSU/aPBxOSC8LS kY+HyrSvqZdQ0QJVInV2dUlZkumuhh+Q8g0ZoQ38sdxK3QFzVffqNu6Yt/mi62Lny3gJ 9lg3NtEo4EBljBAJwEDgODN0rdUjobf2iHiBYpb20JFmBq9jyQhZyjXY4KMvXM7nX9is Regw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mHlckjvw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id n15-20020a17090a4e0f00b0028573fb25b9si834603pjh.135.2023.12.07.02.33.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 02:33:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mHlckjvw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id D79AF8048E77; Thu, 7 Dec 2023 02:33:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231955AbjLGKdP (ORCPT + 99 others); Thu, 7 Dec 2023 05:33:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231439AbjLGKdO (ORCPT ); Thu, 7 Dec 2023 05:33:14 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8441AA for ; Thu, 7 Dec 2023 02:33:20 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-50bf32c0140so576726e87.1 for ; Thu, 07 Dec 2023 02:33:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701945199; x=1702549999; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0G7EQ5KcNMD+FJBWqkf4cHHplz7DlKiV0y/rovpjNYk=; b=mHlckjvwdE+ckDctbHjSswGalnpiQOIRoapOG9ll4U/ixzhJnV1txER4vu7AipY8Lt YmfjKLbCT0wgUU+MF0a376ufdyaXTdCtCJXBsirWUPiHVsb8kglFG2IWOMdHjKdAe0oJ voc6T2cHJ4iOy/DJ9WdcptSUJxZGKPJnQVz+e0ExvuRJQZeAIGS8reU4idCP+jK8NSZv 6NvvPkK+iBlQZwVJYFqao7c1A90UWsSn2G0WOBr0QhNhnyA1rdRQsCGg+DeSPAfcZBUW AYCTuZQoWt5XmU1cI6Ok40o9Ce/Re6OT/2cTUl9qbycAITHfBJK79cuPbxHUGLvy4anl Nehg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701945199; x=1702549999; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0G7EQ5KcNMD+FJBWqkf4cHHplz7DlKiV0y/rovpjNYk=; b=tUKt4xw/qbwQJmAnLIh8lTeNtt1AUnyYqkugZ8vWiRCtf3LmbDn6I/o/TfuJnHgfEt WzbjDXtZNAUpYfCfzesbSWYEhsP5a8Nzre4qHXh250Z8plktZ3naYbbqVQyVF5fOKn+s vIY2uclRJLlXlhJmu3Px2x0W3fi6f+vJxbnqeBISQfzvRNe1ajSJmjAKnQ3KmNoUX4cu Mesewu47PrgtDYq67j86OWzqKpLc1XzyRPMIiaDm93QnM1LYABugOzh/91O5GYyYVr7E dINSr86kW+oms0oLWOyXLCkYMY5mRaRkR+lFVEnIGdjtmQ+qBk1po9scZp1ckdxWMluH Ka7A== X-Gm-Message-State: AOJu0YyogsbXhLYkSRZPmSsuNXdzxUK7x89rXhr0jWkfCcz/kN2yU1GC Oo24xD65+m14smSaPBUB/NtdGg== X-Received: by 2002:a19:5f19:0:b0:50b:e5e6:aa8e with SMTP id t25-20020a195f19000000b0050be5e6aa8emr1318607lfb.127.1701945199127; Thu, 07 Dec 2023 02:33:19 -0800 (PST) Received: from eriador.lan (dzdqv0yyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::227]) by smtp.gmail.com with ESMTPSA id o17-20020ac24bd1000000b0050c19506428sm138326lfq.170.2023.12.07.02.33.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 02:33:18 -0800 (PST) From: Dmitry Baryshkov To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Marek Szyprowski Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Neil Armstrong Subject: Re: [PATCH] drm/debugfs: fix potential NULL pointer dereference Date: Thu, 7 Dec 2023 12:33:15 +0200 Message-ID: <170194519139.470483.9628943162805035474.b4-ty@linaro.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231205130631.3456986-1-m.szyprowski@samsung.com> References: <20231205130631.3456986-1-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 07 Dec 2023 02:33:32 -0800 (PST) On Tue, 05 Dec 2023 14:06:31 +0100, 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. > > Applied to drm-misc-next, thanks! [1/1] drm/debugfs: fix potential NULL pointer dereference commit: 76385d493c2137460ee7735a5d3a494099c35188 Best regards, -- Dmitry Baryshkov