summaryrefslogtreecommitdiffstats
path: root/net/netrom
diff options
context:
space:
mode:
authorJeff Hansen <x@jeffhansen.com>2009-09-28 12:54:25 -0700
committerDavid S. Miller <davem@davemloft.net>2009-09-28 12:54:25 -0700
commit30df94f800368a016d09ee672c9fcc20751d0260 (patch)
tree1626c98991a1c828d6d359100f5db5bb4e20a946 /net/netrom
parent8823ad31cd3baf73bd21913cf030b9e7afd22923 (diff)
downloadop-kernel-dev-30df94f800368a016d09ee672c9fcc20751d0260.zip
op-kernel-dev-30df94f800368a016d09ee672c9fcc20751d0260.tar.gz
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 <x@jeffhansen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netrom')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud