Re: [PATCH] [bridge] Fix double-free in br_add_if.

From: David Miller
Date: Mon Sep 28 2009 - 15:54:22 EST

From: Jeff Hansen <x@xxxxxxxxxxxxxx>
Date: Fri, 25 Sep 2009 16:58:12 -0600

> There is a potential double-kfree in net/bridge/br_if.c. If br_fdb_insert
> fails, then the kobject is put back (which calls kfree due to the kobject
> release), and then kfree is called again on the net_bridge_port. This
> patch fixes the crash.
> Thanks to Stephen Hemminger for the one-line fix.
> Signed-off-by: Jeff Hansen <x@xxxxxxxxxxxxxx>

Applied, thanks.
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at