[ovs-git] Open vSwitch: datapath: Fix namespace refcount leak on failed init. (master)

dev at openvswitch.org dev at openvswitch.org
Wed Aug 22 21:41:41 UTC 2012


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  0ceaa66c393bb7e59126e66d578dd2b8431c2a49 (commit)
      from  6019f124107ff8f86ecc1dc65fde64cf935ac7d8 (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 0ceaa66c393bb7e59126e66d578dd2b8431c2a49
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=0ceaa66c393bb7e59126e66d578dd2b8431c2a49
Author: Jesse Gross <jesse at nicira.com>
		
datapath: Fix namespace refcount leak on failed init.
		
If a datapath fails to initialze fully (likely due to out-of-memory)
then it's possible that we can take a reference to a network
namespace but never release it.  This fixes the problem by releasing
any resources in the event of an error.

Found by code inspection, it's likely to be extremely rare in practice.

Signed-off-by: Jesse Gross <jesse at nicira.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>


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

Summary of changes:
 datapath/datapath.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list