lkml.org 
[lkml]   [2019]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.16 06/99] dlm: possible memory leak on error path in create_lkb()
    3.16.65-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Vasily Averin <vvs@virtuozzo.com>

    commit 23851e978f31eda8b2d01bd410d3026659ca06c7 upstream.

    Fixes 3d6aa675fff9 ("dlm: keep lkbs in idr")

    Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
    Signed-off-by: David Teigland <teigland@redhat.com>
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    fs/dlm/lock.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/fs/dlm/lock.c
    +++ b/fs/dlm/lock.c
    @@ -1210,6 +1210,7 @@ static int create_lkb(struct dlm_ls *ls,

    if (rv < 0) {
    log_error(ls, "create_lkb idr error %d", rv);
    + dlm_free_lkb(lkb);
    return rv;
    }

    \
     
     \ /
      Last update: 2019-04-02 15:40    [W:4.018 / U:0.404 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site