dlm: memory leaks on error path in dlm_user_request()
commit30d3dfd4c42005311a0a06aa5bb9d3557fdc2e0e
authorVasily Averin <vvs@virtuozzo.com>
Thu, 15 Nov 2018 10:18:56 +0000 (15 13:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 08:51:07 +0000 (13 09:51 +0100)
tree73b37f2e2613ea5038f4ff6cc4df02d74c0dcbe0
parentc5fa01a0153fc4df23777034bc47eae31ac27731
dlm: memory leaks on error path in dlm_user_request()

commit d47b41aceeadc6b58abc9c7c6485bef7cfb75636 upstream.

According to comment in dlm_user_request() ua should be freed
in dlm_free_lkb() after successful attach to lkb.

However ua is attached to lkb not in set_lock_args() but later,
inside request_lock().

Fixes 597d0cae0f99 ("[DLM] dlm: user locks")
Cc: stable@kernel.org # 2.6.19
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/dlm/lock.c