openvswitch: Fix memory leak in ovs_vport_alloc() error path
authorChristoph Jaeger <cj@linux.com>
Tue, 12 Aug 2014 07:27:57 +0000 (09:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Aug 2014 03:04:46 +0000 (20:04 -0700)
commit3791b3f6fb74d265c93d493d9bbf29c1e769ceae
treeeb1eac4b5160d84014501558c0deabb92fd086c6
parentf0094b28f3038936c1985be64dbe83f0e950b671
openvswitch: Fix memory leak in ovs_vport_alloc() error path

ovs_vport_alloc() bails out without freeing the memory 'vport' points to.

Picked up by Coverity - CID 1230503.

Fixes: 5cd667b0a4 ("openvswitch: Allow each vport to have an array of 'port_id's.")
Signed-off-by: Christoph Jaeger <cj@linux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport.c