lkml.org 
[lkml]   [2013]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH 3.2 63/87] ext4: fix memory leak in xattr
    On Mon, Nov 25, 2013 at 01:44:29PM +0000, Ben Hutchings wrote:
    > 3.2.53-rc1 review patch. If anyone has any objections, please let me know.
    >
    > --- a/fs/ext4/xattr.c
    > +++ b/fs/ext4/xattr.c
    > @@ -1269,6 +1269,8 @@ retry:
    > s_min_extra_isize) {
    > tried_min_extra_isize++;
    > new_extra_isize = s_min_extra_isize;
    > + kfree(is); is = NULL;
    > + kfree(bs); bs = NULL;
    > goto retry;
    > }
    > error = -1;
    There was a follow-on patch that frees the bh too.

    Dave



    \
     
     \ /
      Last update: 2013-11-25 20:41    [W:4.063 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site