[ovs-git] Open vSwitch: dpif-linux: Fix segfault when a port already exists. (master)

dev at openvswitch.org dev at openvswitch.org
Thu Jan 17 01:36:11 UTC 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  2510ba7cfde15fdacea42e920c61d7be131ba0cd (commit)
      from  4958e3ee121f31909696e0d98930805f45ba9188 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2510ba7cfde15fdacea42e920c61d7be131ba0cd
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=2510ba7cfde15fdacea42e920c61d7be131ba0cd
Author: Justin Pettit <jpettit at nicira.com>
		
dpif-linux: Fix segfault when a port already exists.
		
Commit 78a2d59c (dpif-linux.c: Let the kernel pick a port number if one
not requested.) changed the logic for port assignment, but didn't
properly handle some error conditions.  An attempt to add a tunnel port
that already exists would lead to a segfault.  This commit fixes the
logic to stop processing and return an error.

Reported-by: Gurucharan Shetty <shettyg at nicira.com>
Signed-off-by: Justin Pettit <jpettit at nicira.com>


-----------------------------------------------------------------------

Summary of changes:
 lib/dpif-linux.c |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list