Re: Don't leak 'listeners' in netlink_kernel_create()

From: David Miller
Date: Mon Oct 15 2007 - 04:39:36 EST


From: ebiederm@xxxxxxxxxxxx (Eric W. Biederman)
Date: Sun, 14 Oct 2007 16:30:06 -0600

> Jesper Juhl <jesper.juhl@xxxxxxxxx> writes:
>
> > From: Jesper Juhl <jesper.juhl@xxxxxxxxx>
> > Subject: Don't leak 'listeners' in netlink_kernel_create()
> >
> > The Coverity checker spotted that we'll leak the storage allocated
> > to 'listeners' in netlink_kernel_create() when the
> > if (!nl_table[unit].registered)
> > check is false.
> >
> > This patch avoids the leak.
> >
> >
> > Signed-off-by: Jesper Juhl <jesper.juhl@xxxxxxxxx>
>
> This patch appears trivially correct to me.
> Acked-by: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>

Applied, thanks everyone.
-
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/