summaryrefslogtreecommitdiff
path: root/drivers/staging/dgrp/dgrp_net_ops.c
diff options
context:
space:
mode:
authorNathan Zimmer <nzimmer@sgi.com>2013-03-13 18:05:59 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-14 20:40:58 (GMT)
commit433121c6ef516e4a55d0dbc4c90d75f7a3084c55 (patch)
tree878bd99e8ac6e111d001fc6b1651d1c280badb2f /drivers/staging/dgrp/dgrp_net_ops.c
parent2c0fb1c969ddedf15b4d9d0c106f4dca82dffc21 (diff)
downloadlinux-fsl-qoriq-433121c6ef516e4a55d0dbc4c90d75f7a3084c55.tar.xz
staging: dgrp: cleanup sparse warnings
A cleanup patch to remove sparse warnings caused by my other patch "procfs: Improve Scaling in proc" since now proc_fops is protected by the rcu. Signed-off-by: Nathan Zimmer <nzimmer@sgi.com> Cc: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgrp/dgrp_net_ops.c')
-rw-r--r--drivers/staging/dgrp/dgrp_net_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgrp/dgrp_net_ops.c b/drivers/staging/dgrp/dgrp_net_ops.c
index f364e8e..64f48ff 100644
--- a/drivers/staging/dgrp/dgrp_net_ops.c
+++ b/drivers/staging/dgrp/dgrp_net_ops.c
@@ -91,7 +91,7 @@ void dgrp_register_net_hook(struct proc_dir_entry *de)
struct nd_struct *node = de->data;
de->proc_iops = &net_inode_ops;
- de->proc_fops = &net_ops;
+ rcu_assign_pointer(de->proc_fops, &net_ops);
node->nd_net_de = de;
sema_init(&node->nd_net_semaphore, 1);
node->nd_state = NS_CLOSED;