[ovs-git] Open vSwitch: datapath: Use with RCU_INIT_POINTER(x, NULL) in vport-gre.c (master)

dev at openvswitch.org dev at openvswitch.org
Fri Mar 28 22:11:39 UTC 2014


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  317e49b4aaa71aa4e96817e035083db7f1b964f0 (commit)
      from  5794e276b48638c7e44a763481aa051111de1676 (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 317e49b4aaa71aa4e96817e035083db7f1b964f0
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=317e49b4aaa71aa4e96817e035083db7f1b964f0
Author: Monam Agarwal <monamagarwal123 at gmail.com>
		
datapath: Use with RCU_INIT_POINTER(x, NULL) in vport-gre.c
		
This patch replaces rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL)

The rcu_assign_pointer() ensures that the initialization of a structure
is carried out before storing a pointer to that structure.
And in the case of the NULL pointer, there is no structure to initialize.
So, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL)

Signed-off-by: Monam Agarwal <monamagarwal123 at gmail.com>
Signed-off-by: Jesse Gross <jesse at nicira.com>


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

Summary of changes:
 datapath/vport-gre.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list