Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2285610rwd; Fri, 2 Jun 2023 07:26:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7b4NlV8Y94gaEjOtyhsXV65RLDmbRg5QOVwxYtFtwmmM438/yroZk8JIdc6633xrtpscQ9 X-Received: by 2002:a17:902:b694:b0:1af:b957:718b with SMTP id c20-20020a170902b69400b001afb957718bmr94005pls.39.1685715976798; Fri, 02 Jun 2023 07:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685715976; cv=none; d=google.com; s=arc-20160816; b=c4u+7GoXOApFG46lmlIiS8Z1uiH/IRi7HzaGEHCctBne6ihNydG0NnyDuJAKQal8vb 4z1p0gijcE/bjlCw0M/aPIjcusWMs4QBP+p9k0dN/2LISMADj294HwJCJY1c11zkn/nl pJaJKyxFirTryuFeoKnGp+JafF4S6U8UU2nX/5m1fsMOKl1f7NkaMZmU5AqE/sSxEDPt Af+TqcAozk4b+6ckX3YBp73q8nSPfiUBu61xz+bFx7ADOQjSdo3WUv/kY7DquNYJOlEa VmL8YSVqnugKhWCeKSoDbsdZKZBbbXzGqG6n3CVFz3SYZ9hZdZv46A/HbZL3aCRAXmD9 QPFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=lEmzBqXzXUdKWId4ALGgLALDtW0QsuxONfR02cBWwOc=; b=lx+y7yOVep1DcWTwvCKdSDi2ySSElRCWgtVpV/sYPvVpTnah8CYCjj5zK9Am0HxIr6 hEcux4FnCIjGMXlMuWUrfB7ih3/gxCQZN/7JIahr5WGrknMgcYXs58OspXzx+Gu7PPPV GG9+bixgBrLcc6MDrhZ9dnuUsHZqF3o8C366sbADN4Wn99iBBAttBOKuRah/ezpkkmH9 KfnvqzY9GMns/QEXaOHo9PFVJ4luuWwovKZHZxC126cbU2m+UCTZ1PIHczxikBSwQhGl y3Mqpqjf9Tu2B5o3+tZHCEF7wGtkkFTS0uyOj+E0Z/9YAhSUKfLIbpzC018jVYZGGywz Y/VQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l9-20020a170902f68900b001aafc97feb0si1029060plg.174.2023.06.02.07.26.02; Fri, 02 Jun 2023 07:26:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235248AbjFBOHX (ORCPT + 99 others); Fri, 2 Jun 2023 10:07:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234587AbjFBOHV (ORCPT ); Fri, 2 Jun 2023 10:07:21 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60072197; Fri, 2 Jun 2023 07:07:19 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10729"; a="355886975" X-IronPort-AV: E=Sophos;i="6.00,213,1681196400"; d="scan'208";a="355886975" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2023 07:07:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10729"; a="740843836" X-IronPort-AV: E=Sophos;i="6.00,213,1681196400"; d="scan'208";a="740843836" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga001.jf.intel.com with ESMTP; 02 Jun 2023 07:07:16 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1q55Qx-000ex8-0C; Fri, 02 Jun 2023 17:07:15 +0300 Date: Fri, 2 Jun 2023 17:07:14 +0300 From: Andy Shevchenko To: Geert Uytterhoeven Cc: Wolfram Sang , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Greg KH Subject: Re: [PATCH v8 1/1] gpio: add sloppy logic analyzer using polling Message-ID: References: <20220329091126.4730-1-wsa+renesas@sang-engineering.com> <20220329091126.4730-2-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 02, 2023 at 08:57:36AM +0200, Geert Uytterhoeven wrote: > On Fri, Jun 2, 2023 at 8:51 AM Geert Uytterhoeven wrote: > > On Thu, Jun 1, 2023 at 11:40 PM wrote: > > > Tue, Mar 29, 2022 at 11:11:26AM +0200, Wolfram Sang kirjoitti: ... > > > However, I haven't checked if it's pure theoretical issue with the current code > > > base of debugfs or a potential problem. Easy fix is to check an error code and > > > > I think debugfs_create_dir() can only fail reasonably due to OOM. > > Oops, you were talking about NULL, not an error code. > I don't think that can ever happen. That's looks correct, I don't see (looking briefly into the fs/debugfs) that NULL is possible to be returned. Wondering, why the heck we (used to) have a lot of IS_ERR_OR_NULL() checks. > And if I did miss something, it would crash when dereferencing a NULL > pointer in d_really_is_positive() (as called in start_creating())... I don't see how, but I see a big comment on top of `if (!parent)`. -- With Best Regards, Andy Shevchenko