From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 869F8CD98F3 for ; Wed, 11 Oct 2023 06:24:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344362AbjJKGYT (ORCPT ); Wed, 11 Oct 2023 02:24:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344357AbjJKGYS (ORCPT ); Wed, 11 Oct 2023 02:24:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4825793 for ; Tue, 10 Oct 2023 23:24:17 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70DBEC433C9; Wed, 11 Oct 2023 06:24:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697005456; bh=7/uwHN1zSxNRhoc9LRHfanqFBxW8eUQj3CH1DUDb+fE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UI1VydtMw8z/XJ28RwkF+gggPwKisMi3wpmy55u/uTGtRr/m/B2cl4jFd4Sd3amjf RX7OLS2+FWwxZM8KnMIOhJzY0S1UoR7b0Ouh8Tcq50G/ANbvSFtwvBaw6l7KaYJQhO xKgLRnt1riHbtGWK2WBJbQMEr7mmZPm+9iQa2PLg= Date: Wed, 11 Oct 2023 08:24:13 +0200 From: Greg KH To: Alexander Aring Cc: teigland@redhat.com, cluster-devel@redhat.com, gfs2@lists.linux.dev, christophe.jaillet@wanadoo.fr, stable@vger.kernel.org Subject: Re: [PATCH RESEND 3/8] fs: dlm: Remove some useless memset() Message-ID: <2023101105-flashing-image-8778@gregkh> References: <20231010220448.2978176-1-aahringo@redhat.com> <20231010220448.2978176-3-aahringo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231010220448.2978176-3-aahringo@redhat.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue, Oct 10, 2023 at 06:04:43PM -0400, Alexander Aring wrote: > From: Christophe JAILLET > > There is no need to clear the buffer used to build the file name. > > snprintf() already guarantees that it is NULL terminated and such a > (useless) precaution was not done for the first string (i.e > ls_debug_rsb_dentry) > > So, save a few LoC. > > Signed-off-by: Christophe JAILLET > Signed-off-by: Alexander Aring > --- > fs/dlm/debug_fs.c | 5 ----- > 1 file changed, 5 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.