summaryrefslogtreecommitdiff
path: root/fs/dlm/midcomms.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-05-26 17:46:05 +0300
committerDavid Teigland <teigland@redhat.com>2021-05-26 17:49:04 +0300
commitf6089981d07e6e1cc053f4c239e458eed122c092 (patch)
treee123eafa0c8593727070a7c81a79528d67744090 /fs/dlm/midcomms.c
parent706474fbc5fedd7799b488962aad3541b235165b (diff)
downloadlinux-f6089981d07e6e1cc053f4c239e458eed122c092.tar.xz
fs: dlm: Fix memory leak of object mh
There is an error return path that is not kfree'ing mh after it has been successfully allocates. Fix this by moving the call to create_rcom to after the check on rc_in->rc_id check to avoid this. Thanks to Alexander Ahring Oder Aring for suggesting the correct way to fix this. Addresses-Coverity: ("Resource leak") Fixes: a070a91cf140 ("fs: dlm: add more midcomms hooks") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/midcomms.c')
0 files changed, 0 insertions, 0 deletions