It would be an error for cleanup code to reference the odp_port, but I suppose that's part of your point.
This is fine with me, feel free to commit it. On Mon, Nov 26, 2012 at 12:27:16PM -0800, Ethan Jackson wrote: > I'm worried about dpif_port_query_by_name() failing, returning an error, > and then some cleanup code referencing the odp_port. I don't like the idea > of uninitialized data leaving the port_construct() function, even if it's > garbage that's intended to be destroyed. That said, I don't feel that > strongly about it, I don't think this solves an actual problem, so I'm > happy to drop it if you think we should. > > Ethan > > > On Sat, Nov 24, 2012 at 8:01 PM, Ben Pfaff <b...@nicira.com> wrote: > > > On Sat, Nov 24, 2012 at 06:32:15PM -0800, Ethan Jackson wrote: > > > I don't think this fixes an actual problem, but it seems more > > > future proof. > > > > > > Signed-off-by: Ethan Jackson <et...@nicira.com> > > > > It gets assigned its permanent value a few lines down, after the call to > > dpif_port_query_by_name(). I don't think it's likely that > > dpif_port_query_by_name() could reference it, since dpif is a different > > (lower) layer. > > > > Do you think it's worthwhile? > > > > Thanks, > > > > Ben. > > _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev