Re: [PATCH] BTRFS: Don't leak memory in btrfs_get_acl()

From: Jesper Juhl
Date: Sat Dec 25 2010 - 12:52:08 EST


On Sat, 25 Dec 2010, Mariusz Kozlowski wrote:

> On Fri, Dec 24, 2010 at 11:45:21PM +0100, Jesper Juhl wrote:
> > Hi,
> >
> > Currrently we leak memory in btrfs_get_acl::btrfs_get_acl() if
> > posix_acl_from_xattr() fails. With this patch we do not.
>
> I sent similar patch some time ago but no reply from Chris so far.
>
> http://marc.info/?l=linux-kernel&m=129247984126414
>
I was not aware of that. The patch looks fine (identical to mine), so I
think Chris should just merge yours.

Feel free to add:

Reviewed-by: Jesper Juhl <jj@xxxxxxxxxxxxx>


--
Jesper Juhl <jj@xxxxxxxxxxxxx> http://www.chaosbits.net/
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/