From: Jeff Hansen Date: Mon, 28 Sep 2009 19:54:25 +0000 (-0700) Subject: bridge: Fix double-free in br_add_if. X-Git-Tag: v2.6.32-rc3~63^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30df94f800368a016d09ee672c9fcc20751d0260;p=pandora-kernel.git bridge: Fix double-free in br_add_if. 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed