Re: [Cluster-devel] [PATCH RESEND 3/8] fs: dlm: Remove some useless memset()

Greg KH <[email protected]> Wed, 11 Oct 2023 08:24:13 +0200
Newsgroups com.redhat.cluster-devel,dev.linux.lists.gfs2,org.kernel.vger.stable
Message-ID <2023101105-flashing-image-8778@gregkh>
On Tue, Oct 10, 2023 at 06:04:43PM -0400, Alexander Aring wrote:
> From: Christophe JAILLET <[email protected]>
> 
> 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 <[email protected]>
> Signed-off-by: Alexander Aring <[email protected]>
> ---
>  fs/dlm/debug_fs.c | 5 -----
>  1 file changed, 5 deletions(-)

<formletter>

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.

</formletter>