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

dev at openvswitch.org dev at openvswitch.org
Wed Aug 22 21:46:08 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.8 has been updated
       via  24d4b608a21e6fb5030bec2e422f637c88120464 (commit)
      from  4bba45d909ac6c2abdc41fc6573ee59d95da6bd6 (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 24d4b608a21e6fb5030bec2e422f637c88120464
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=24d4b608a21e6fb5030bec2e422f637c88120464
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