fs: dlm: drop rxbuf manipulation in dlm_copy_master_names
authorAlexander Aring <aahringo@redhat.com>
Tue, 1 Aug 2023 18:09:46 +0000 (14:09 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 10 Aug 2023 15:33:03 +0000 (10:33 -0500)
commit561c67d8a10142250baa2a2a4e8b5d95e9c97df9
treedddccf19f3d1f73588dd0c86975664a5e180e449
parentc4f4e135c27b503d325d414819831909023b113d
fs: dlm: drop rxbuf manipulation in dlm_copy_master_names

This patch removes the manipulation of the receive buffer in case of an
error and be sure the buffer is null terminated before an error
messagea is printed out. Instead of manipulate the receive buffer we
tell inside the format string the maximum length the string buffer is
being read.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/dir.c