Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2656985rdh; Mon, 30 Oct 2023 04:06:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHueGncvuLaoWgB/hSVMrAcagCa/L3GbxkZ2d58/vtctpccHOznyYU0W8lC4mzX3vZ52jaO X-Received: by 2002:a17:903:3003:b0:1cc:2376:5508 with SMTP id o3-20020a170903300300b001cc23765508mr4916628pla.34.1698664013608; Mon, 30 Oct 2023 04:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698664013; cv=none; d=google.com; s=arc-20160816; b=vkp2fdEXem2aTD/N3XZiFDiTyIpk6K8kQFEYAfL5+wFu64FL1Yg5PrbjFmMnjM+VqO R74JKuYbKLG9SPPMjHeTMdtPsv6NN1Iz+9Q+PxLcomIMzPHKhDb6j29Wcg0OkJGdRhOs aSDCCtMamZKARPIP3bt2Vz9S7C8QVxUoRMuESJqZhRjk5SYOv1DuaEqvRLNimPBM4GOf W7EX10SpX6qpBlP4iCK+zSEXPOOAeYyA6Q220Kv9xLfc2N+A0LlNiWvRA8fCqZtB7xxW CMpudwhwDAeJhBWwD1sdgOsMhutIdGXgxBwKsv8eSr+nlvs7Ii6N627QnI074Jq4wNUp d1cQ== 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=RPDLogMX2Okl0yWKKv3brKmDR3BK6A6t8hBL6zMzTPM=; fh=3Av2KNlxdZD7+XccvpUHvyyK2olJA6EiWUhU5oymGWM=; b=W/T4fzf0mIx/T+TqkoD7aDLoayRgt2ZRYVmufJLtvb9J7l2I6rGtPAb1MF3CQU/nuf 8PnnA1sINc69VQPh3ev7yJmavwt9uPKNTZqDtd7BLNVexoZ4E5PADgAklX/EEMWfN3lz UmsActiSX2mzqZ6ch7cUlJQ6aY5nvqYaGaVLxxxdicugJX6qOrLJO64h5nf9vnhwFjVL bXLHz9L3wGkh6bvWhPYhN5F5DITfikwgVyVmCVTS7rxRl1FZCYnje/Es4i2oDoyBlLDe tpRvsW3bby45K9a6Duw0+zig0FW5GUFpsx4mqJymY9qXjHQ0LjZwokmQH7QPxLNENRQm bJFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZqEKQOmn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id y18-20020a17090322d200b001cc4107a515si1355184plg.48.2023.10.30.04.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 04:06:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZqEKQOmn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id A3F9D804ACC1; Mon, 30 Oct 2023 04:06:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232617AbjJ3LGq (ORCPT + 99 others); Mon, 30 Oct 2023 07:06:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232281AbjJ3LGp (ORCPT ); Mon, 30 Oct 2023 07:06:45 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50561B3 for ; Mon, 30 Oct 2023 04:06:43 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2c6b30acacdso23482841fa.2 for ; Mon, 30 Oct 2023 04:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698664001; x=1699268801; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=RPDLogMX2Okl0yWKKv3brKmDR3BK6A6t8hBL6zMzTPM=; b=ZqEKQOmnxUMMQIMHczCPqIFQYtD1i6rCDD9eI4pyX77D6LMP8ON9Cm2UDhHp81grRh FStLIjUklpSxd7dyrw5p8Xz+gfR6paxRNSaAJZOfuHY+91CIc6nvLl20KbW/abmSvG+0 7IeNqhw79CEBQZCkXW0R0aBmsbetHVSpuCjxGKax2Cm+roIHCmdj5GuTHXEhXVEiikwl FnH8GDdq58fbkfogKaIRU598L3tqENVv1Y1ryoK6E+aQE1dXdz/3ZOTXN9Ri5985pu30 C03EHTVRNPkGMa+P0yHSLi42/+oEAgMk+yYd92mpQrpOpKvWE0O2dpRYNCUr7Jhv9+7e VzeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698664001; x=1699268801; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=RPDLogMX2Okl0yWKKv3brKmDR3BK6A6t8hBL6zMzTPM=; b=JXBKOL5yxoNaBFF2SCI8oIT4lIn5PnLFEXYODs6LdNcOG7AxUv6sPVL8LESZA0gHfV HGWl2jZG75qtJpMoQFGE+47oiKIPRJM+m7XPjyox7KTLw83JlzvYzmOkc73ksP6DzA2B JakpGeMnxD/YvXWXMkgl801Fx3hazqxyBA67owvv8AgvUdOW1fzOjQucffKrbyD8cr7h LJ9u2PiCXrzr1Q39CzXR2mWP3nH8lgbewnzRxRTZHy4H8KJ3nUKV8YgA2EICFhrBvvZQ jLP7Usuu0XBt88rG5+2XubkLNdJw1YylhrGUT7Si4LLKOcy578nNg/AXgNXOGwsMa9dq k+0Q== X-Gm-Message-State: AOJu0YyxnS30gpJHvRDaISRWqruLp5ZGCa916sX4Hi+dxKLE345yYLIZ iHyr/o3P927K+Z3iMrq57f5NJvolPcvKNWFonXI= X-Received: by 2002:a05:651c:2122:b0:2c5:a1b0:d95a with SMTP id a34-20020a05651c212200b002c5a1b0d95amr8130145ljq.14.1698664001170; Mon, 30 Oct 2023 04:06:41 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id n35-20020a05600c3ba300b004068de50c64sm8934726wms.46.2023.10.30.04.06.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 04:06:40 -0700 (PDT) Date: Mon, 30 Oct 2023 14:06:38 +0300 From: Dan Carpenter To: Christophe JAILLET Cc: Nishanth Menon , Tero Kristo , Santosh Shilimkar , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Tero Kristo , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2] firmware: ti_sci: Fix an off-by-one in ti_sci_debugfs_create() Message-ID: References: <7158db0a4d7b19855ddd542ec61b666973aad8dc.1698660720.git.christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7158db0a4d7b19855ddd542ec61b666973aad8dc.1698660720.git.christophe.jaillet@wanadoo.fr> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 30 Oct 2023 04:06:52 -0700 (PDT) On Mon, Oct 30, 2023 at 11:12:26AM +0100, Christophe JAILLET wrote: > The ending NULL is not taken into account by strncat(), so switch to > snprintf() to correctly build 'debug_name'. > > Using snprintf() also makes the code more readable. > > Fixes: aa276781a64a ("firmware: Add basic support for TI System Control Interface (TI-SCI) protocol") > Signed-off-by: Christophe JAILLET > --- > v2: > - use snprintf() to simplify code [Dan Carpenter] > Thanks! Reviewed-by: Dan Carpenter regards, dan carpenter