lkml.org 
[lkml]   [2019]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.14 037/267] dlm: fix missing idr_destroy for recover_idr
    Date
    From: David Teigland <teigland@redhat.com>

    [ Upstream commit 8fc6ed9a3508a0435b9270c313600799d210d319 ]

    Which would leak memory for the idr internals.

    Signed-off-by: David Teigland <teigland@redhat.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    fs/dlm/lockspace.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c
    index 610f72ae7ad67..9c8c9a09b4a6d 100644
    --- a/fs/dlm/lockspace.c
    +++ b/fs/dlm/lockspace.c
    @@ -807,6 +807,7 @@ static int release_lockspace(struct dlm_ls *ls, int force)

    dlm_delete_debug_file(ls);

    + idr_destroy(&ls->ls_recover_idr);
    kfree(ls->ls_recover_buf);

    /*
    --
    2.20.1


    \
     
     \ /
      Last update: 2019-12-16 19:51    [W:3.662 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site