datapath: Immediately exit on error in ovs_vport_cmd_set().
authorJesse Gross <jesse@nicira.com>
Thu, 2 May 2013 17:14:54 +0000 (10:14 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 2 May 2013 18:48:14 +0000 (11:48 -0700)
commit17ec1d04252bad77e816ecddd09bbb6db30b3575
treedc98234d0872ea0ab04f58537f1791f4ccc78d1d
parent48f6fbe1972a4ab6d47e87913fcf537125e7dcb4
datapath: Immediately exit on error in ovs_vport_cmd_set().

It is an error to try to change the type of a vport using the set
command. However, while we check that this is an error, we still
proceed to allocate memory which then gets freed immediately.
This stops processing after noticing the error, which does not
actually fix a bug but is more correct.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/datapath.c