Commit 23851e97 authored by Vasily Averin's avatar Vasily Averin Committed by David Teigland

dlm: possible memory leak on error path in create_lkb()

Fixes 3d6aa675 ("dlm: keep lkbs in idr")
Cc: stable@kernel.org # 3.1
Signed-off-by: default avatarVasily Averin <vvs@virtuozzo.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent b982896c
......@@ -1209,6 +1209,7 @@ static int create_lkb(struct dlm_ls *ls, struct dlm_lkb **lkb_ret)
if (rv < 0) {
log_error(ls, "create_lkb idr error %d", rv);
dlm_free_lkb(lkb);
return rv;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment