Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103333
b: refs/heads/master
c: 81c684d
h: refs/heads/master
i:
  103331: 2f5b223
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Jul 8, 2008
1 parent 82db9f9 commit 11eb80b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2c693610fe923764fe41b846fb86938a2010da6e
refs/heads/master: 81c684d12ddc05bba4953e36e9cdd5939dde344b
14 changes: 6 additions & 8 deletions trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -2873,22 +2873,20 @@ void ip_rt_multicast_event(struct in_device *in_dev)
}

#ifdef CONFIG_SYSCTL
static int ipv4_sysctl_rtcache_flush(ctl_table *ctl, int write,
static int ipv4_sysctl_rtcache_flush(ctl_table *__ctl, int write,
struct file *filp, void __user *buffer,
size_t *lenp, loff_t *ppos)
{
if (write) {
int flush_delay;
ctl_table ctl;
struct net *net;
static DEFINE_MUTEX(flush_mutex);

mutex_lock(&flush_mutex);
ctl->data = &flush_delay;
proc_dointvec(ctl, write, filp, buffer, lenp, ppos);
ctl->data = NULL;
mutex_unlock(&flush_mutex);
memcpy(&ctl, __ctl, sizeof(ctl));
ctl.data = &flush_delay;
proc_dointvec(&ctl, write, filp, buffer, lenp, ppos);

net = (struct net *)ctl->extra1;
net = (struct net *)__ctl->extra1;
rt_cache_flush(net, flush_delay);
return 0;
}
Expand Down

0 comments on commit 11eb80b

Please sign in to comment.