On Wed, Mar 19, 2014 at 04:10:42AM +0530, Monam Agarwal wrote: > Signed-off-by: Monam Agarwal <monamagarwal...@gmail.com>
Reviewed-by: Paul E. McKenney <paul...@linux.vnet.ibm.com> > --- > drivers/net/ethernet/broadcom/bnx2.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/broadcom/bnx2.c > b/drivers/net/ethernet/broadcom/bnx2.c > index 965c723..5eab730 100644 > --- a/drivers/net/ethernet/broadcom/bnx2.c > +++ b/drivers/net/ethernet/broadcom/bnx2.c > @@ -409,7 +409,7 @@ static int bnx2_unregister_cnic(struct net_device *dev) > mutex_lock(&bp->cnic_lock); > cp->drv_state = 0; > bnapi->cnic_present = 0; > - rcu_assign_pointer(bp->cnic_ops, NULL); > + RCU_INIT_POINTER(bp->cnic_ops, NULL); > mutex_unlock(&bp->cnic_lock); > synchronize_rcu(); > return 0; > -- > 1.7.9.5 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/