Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2757486rdb; Tue, 12 Sep 2023 11:05:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKEwzT40ntrBP5R6V++O7rHffzRX3EJ8M3GnwaJmWhLPa09YX5MXE0WGQSqUTIuI4SLRbK X-Received: by 2002:a17:903:22c3:b0:1c3:a814:a12b with SMTP id y3-20020a17090322c300b001c3a814a12bmr502562plg.16.1694541919746; Tue, 12 Sep 2023 11:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694541919; cv=none; d=google.com; s=arc-20160816; b=k6Oz/mOqn4BtQUzYRzts3rPDLW8U+EimjeIu90aTzKi97oDOzMZ2A069GuuosiVhUo PznrRyEIiLr75fDuvXG/STgRe93HxKpCM/uBlikVco1dS0gzPMQ8cWv21qeAQm/e8zjA miZ8HSF++swkt4ZbqGrkcmPRdESYs+cdsBys8Bo8qSzmSbJ/9Io2KFegbhyvHd3kAH7A ziLOMqRKbA1Fozt/Q8y/qpg26AyTwKle2ZwZgCBkqog5iouLiqIVcX1owE0IiN7ERpDO ZCNmivo9Yo4YYB7x4z3SBa4NrREOuM6mdky4XduSyvYzDlkwJm9X85w0RkhC+AtHTFNb tyIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=gTj8iF9KcqBW/RU03eG4Ux7aTjD77gzubI/yf7LAsOs=; fh=rcGSjFP0CHDYveFhw0LW/ziYWfYLG+Ycg0BHranjEh8=; b=LXdg4P/siRYuNcsw9xXclIkfK8ntAoAsBTUzhJ+4WB8SYysob11oBrfJtZfgz9RF5W 5jECAWDhNvn8fLFjvNwh9jydDc2TCHDwN7yStUFsg6EzEOlkyJNWe2atrRQ/Wrrk0c0k M9rdUTXU+kBwTd3a5rjy2WC0DAchG1UdQQloddVjEtnT1vIZRDmCyHuRFKzLo6FIpFIx Bysr/k/r6+/WF2huNK0aCMerqdL9x+dye8U8SyCEJ/XgXGM+wax+TO2lBp7T/vgVRWZK vsfV7wkBDywsM8gxE7x0UBxp0V19Alsq6zhijqC7b9c3K99dzyzcsjFy1L4cnLwhIXAr t3Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Oe3pEuLf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id f17-20020a170903105100b001b4fc117bf0si8114561plc.116.2023.09.12.11.05.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 11:05:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Oe3pEuLf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 84A2081C807C; Tue, 12 Sep 2023 11:00:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236913AbjILR76 (ORCPT + 99 others); Tue, 12 Sep 2023 13:59:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231665AbjILR76 (ORCPT ); Tue, 12 Sep 2023 13:59:58 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73D12C1; Tue, 12 Sep 2023 10:59:54 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0CEF8C433C7; Tue, 12 Sep 2023 17:59:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694541594; bh=gTj8iF9KcqBW/RU03eG4Ux7aTjD77gzubI/yf7LAsOs=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=Oe3pEuLfrQJFi8kxdOsYhLw3OeQBwQaBfxW8wVmAm04NL0uIG6QLagTHPUFeQ6QR6 lWiOD84U1mAABlv+2zibX1gPqtR4NsZQAKl18jW6WmaWK/ras703QgQwGyVqeCj22p KT82QtMdP41bDZbTndElPcRGb4jSmhtIdyNCStyILXRnQZongWpKc6XjVBnxJgwB89 3M8mzQle8bS2al/m1yX6o2amKOliQuts3R/Q7b+y0VlAZ/lHGhBEPvr4ZACcv82VNK E2PoepWD0c8RLfWJGSu3Jnui0JVAMa5L6zzYNWGi7NsLtalwzLPnqbU4PK8KrCKn++ xBEE1TGetT+3Q== Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20230822134849.3352329-1-alessandro.carminati@gmail.com> Subject: Re: [PATCH] Sanitize possible_parent_show to Handle Return Value of of_clk_get_parent_name From: Stephen Boyd Cc: Philip Daly , Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Alessandro Carminati Date: Tue, 12 Sep 2023 10:59:51 -0700 User-Agent: alot/0.10 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 (pete.vger.email [0.0.0.0]); Tue, 12 Sep 2023 11:00:10 -0700 (PDT) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Quoting Alessandro Carminati (2023-09-12 10:05:19) > Il giorno ven 8 set 2023 alle ore 23:25 Stephen Boyd > ha scritto: > > > > Is nothing actually wrong? And this is a speculative patch? >=20 > In the current state, Linux can crash, so I would say that there's someth= ing > wrong. > I submitted this patch in response to a specific bug report that caused a > kernel crash during testing. Where is the bug report? On some public tracker? Can you link to it? >=20 > > > > All other arms of this conditional statement check the validity of the > > pointer before printing the string. And when the parent isn't known we > > print "(missing)", so it looks like we should do that instead. How about > > this patch? >=20 > Indeed, your patch appears to provide a more verbose coding and accurate > message, which is valuable for troubleshooting. > So yeah, for what it is worth, I think it is good as well. Cool, can you send it after testing it out?