| To: | Mateusz Guzik <mguzik@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] xfs: fix a memory leak in xfs_get_acl on error |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Thu, 31 Mar 2016 07:26:55 +1100 |
| Cc: | xfs@xxxxxxxxxxx, Andreas Gruenbacher <agruenba@xxxxxxxxxx>, Al Viro <viro@xxxxxxxxxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1459348507-20406-1-git-send-email-mguzik@xxxxxxxxxx> |
| References: | <1459348507-20406-1-git-send-email-mguzik@xxxxxxxxxx> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Wed, Mar 30, 2016 at 04:35:07PM +0200, Mateusz Guzik wrote: > Signed-off-by: Mateusz Guzik <mguzik@xxxxxxxxxx> > --- > fs/xfs/xfs_acl.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/fs/xfs/xfs_acl.c b/fs/xfs/xfs_acl.c > index 2dad2b5..ce10c4c 100644 > --- a/fs/xfs/xfs_acl.c > +++ b/fs/xfs/xfs_acl.c > @@ -162,10 +162,11 @@ xfs_get_acl(struct inode *inode, int type) > */ > if (error != -ENOATTR) > acl = ERR_PTR(error); > - return acl; > + goto out; > } > > acl = xfs_acl_from_disk(xfs_acl, len, XFS_ACL_MAX_ENTRIES(ip->i_mount)); > +out: > kmem_free(xfs_acl); > return acl; > } Hi Mateusz, It looks like we've already fixed this problem - can you check 4.6-rc1 and if the leak is still there post an updated patch? Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: BUG in xfs_trans_binval, Olaf Hering |
|---|---|
| Next by Date: | Re: [PATCH] xfs: fix a memory leak in xfs_get_acl on error, Mateusz Guzik |
| Previous by Thread: | [PATCH] xfs: fix a memory leak in xfs_get_acl on error, Mateusz Guzik |
| Next by Thread: | Re: [PATCH] xfs: fix a memory leak in xfs_get_acl on error, Mateusz Guzik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |