~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to net/netlink/af_netlink.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
1566
1566
}
1567
1567
EXPORT_SYMBOL(netlink_kernel_release);
1568
1568
 
1569
 
 
1570
 
static void listeners_free_rcu(struct rcu_head *head)
1571
 
{
1572
 
        kfree(container_of(head, struct listeners, rcu));
1573
 
}
1574
 
 
1575
1569
int __netlink_change_ngroups(struct sock *sk, unsigned int groups)
1576
1570
{
1577
1571
        struct listeners *new, *old;
1588
1582
                memcpy(new->masks, old->masks, NLGRPSZ(tbl->groups));
1589
1583
                rcu_assign_pointer(tbl->listeners, new);
1590
1584
 
1591
 
                call_rcu(&old->rcu, listeners_free_rcu);
 
1585
                kfree_rcu(old, rcu);
1592
1586
        }
1593
1587
        tbl->groups = groups;
1594
1588