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

dev at openvswitch.org dev at openvswitch.org
Wed Aug 22 21:45:44 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, branch-1.7 has been updated
       via  e80478bac49b86e1b9b9cf91fd809e9443794e19 (commit)
      from  327620d63e85999993c5240e36b5c8d742c3ba38 (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 e80478bac49b86e1b9b9cf91fd809e9443794e19
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=e80478bac49b86e1b9b9cf91fd809e9443794e19
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(-)

Open vSwitch

More information about the git mailing list