ofproto: Call port_modified before closing old netdev in update_port().
authorBen Pfaff <blp@nicira.com>
Fri, 13 May 2011 16:14:18 +0000 (09:14 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 13 May 2011 16:14:18 +0000 (09:14 -0700)
commite65942a0679133af3325a214cc6be82b619a363e
tree13557cb600437452dfd22f59a6df9eef3336ed95
parente16b024e1b68b2b1c616cb5faa8f5f640e74861a
ofproto: Call port_modified before closing old netdev in update_port().

Fixes a segmentation fault due to update_port() -> port_modified() ->
bond_slave_set_netdev() -> netdev_monitor_remove() -> netdev_get_name().

Reported-by: Michael MAO <mmao@nicira.com>
ofproto/ofproto.c