dlm: return -ENOMEM if ls_recover_buf fails
authorAlexander Aring <aahringo@redhat.com>
Tue, 23 Apr 2024 12:52:31 +0000 (08:52 -0400)
committerDavid Teigland <teigland@redhat.com>
Tue, 23 Apr 2024 21:08:55 +0000 (16:08 -0500)
commit7b72ab2c6a468305449db8f204bf1e406fd3e147
tree2c29dd1f61a40601cc5f020ec309b54f9ac40cfa
parent7b012732d005fba22912dda038dd253e3b9a1bfc
dlm: return -ENOMEM if ls_recover_buf fails

This patch fixes to return -ENOMEM in case of an allocation failure that
was forgotten to change in commit 6c648035cbe7 ("dlm: switch to use
rhashtable for rsbs").

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202404200536.jGi6052v-lkp@intel.com/
Fixes: 6c648035cbe7 ("dlm: switch to use rhashtable for rsbs")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lockspace.c