mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
Pablo Neira Ayuso says: ==================== The following patchset contains five fixes for Netfilter/IPVS, they are: * A skb leak fix in fragmentation handling in case that helpers are in place, it occurs since the IPV6 NAT infrastructure, from Phil Oester. * Fix SCTP port mangling in ICMP packets for IPVS, from Julian Anastasov. * Fix event delivery in ctnetlink regarding the new connlabel infrastructure, from Florian Westphal. * Fix mangling in the SIP NAT helper, from Balazs Peter Odor. * Fix crash in ipt_ULOG introduced while adding netnamespace support, from Gao Feng. I'll take care of passing several of these patches to -stable once they hit Linus' tree. ==================== Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
commit
a3d9dd89b7
6 changed files with 15 additions and 8 deletions
|
|
@ -125,15 +125,16 @@ static void ulog_send(struct ulog_net *ulog, unsigned int nlgroupnum)
|
|||
/* timer function to flush queue in flushtimeout time */
|
||||
static void ulog_timer(unsigned long data)
|
||||
{
|
||||
unsigned int groupnum = *((unsigned int *)data);
|
||||
struct ulog_net *ulog = container_of((void *)data,
|
||||
struct ulog_net,
|
||||
nlgroup[*(unsigned int *)data]);
|
||||
nlgroup[groupnum]);
|
||||
pr_debug("timer function called, calling ulog_send\n");
|
||||
|
||||
/* lock to protect against somebody modifying our structure
|
||||
* from ipt_ulog_target at the same time */
|
||||
spin_lock_bh(&ulog->lock);
|
||||
ulog_send(ulog, data);
|
||||
ulog_send(ulog, groupnum);
|
||||
spin_unlock_bh(&ulog->lock);
|
||||
}
|
||||
|
||||
|
|
@ -407,8 +408,11 @@ static int __net_init ulog_tg_net_init(struct net *net)
|
|||
|
||||
spin_lock_init(&ulog->lock);
|
||||
/* initialize ulog_buffers */
|
||||
for (i = 0; i < ULOG_MAXNLGROUPS; i++)
|
||||
setup_timer(&ulog->ulog_buffers[i].timer, ulog_timer, i);
|
||||
for (i = 0; i < ULOG_MAXNLGROUPS; i++) {
|
||||
ulog->nlgroup[i] = i;
|
||||
setup_timer(&ulog->ulog_buffers[i].timer, ulog_timer,
|
||||
(unsigned long)&ulog->nlgroup[i]);
|
||||
}
|
||||
|
||||
ulog->nflognl = netlink_kernel_create(net, NETLINK_NFLOG, &cfg);
|
||||
if (!ulog->nflognl)
|
||||
|
|
|
|||
Loading…
Reference in a new issue