]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Immediately exit on error in ovs_vport_cmd_set().
authorJesse Gross <jesse@nicira.com>
Mon, 13 May 2013 15:15:26 +0000 (08:15 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 14 Jun 2013 22:09:09 +0000 (15:09 -0700)
commiteccddb5cc33ab96d39c74ccbf9973759687f29ed
treedc09348aa79668d45e3e48faea332feebae9bdd8
parent8d558d708ac7028555343d7c77c3fa7aa5714f99
openvswitch: 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>
net/openvswitch/datapath.c