Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202661
b: refs/heads/master
c: 4736022
h: refs/heads/master
i:
  202659: 32c6bb9
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 4, 2010
1 parent d9652f0 commit de5f660
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: bc10502dba37d3b210efd9f3867212298f13b78e
refs/heads/master: 4736022844fe694c4ee971fa2b6c1cb38dadbc78
8 changes: 3 additions & 5 deletions trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1957,22 +1957,22 @@ static void ip_handle_martian_source(struct net_device *dev,
#endif
}

/* called in rcu_read_lock() section */
static int __mkroute_input(struct sk_buff *skb,
struct fib_result *res,
struct in_device *in_dev,
__be32 daddr, __be32 saddr, u32 tos,
struct rtable **result)
{

struct rtable *rth;
int err;
struct in_device *out_dev;
unsigned flags = 0;
unsigned int flags = 0;
__be32 spec_dst;
u32 itag;

/* get a working reference to the output device */
out_dev = in_dev_get(FIB_RES_DEV(*res));
out_dev = __in_dev_get_rcu(FIB_RES_DEV(*res));
if (out_dev == NULL) {
if (net_ratelimit())
printk(KERN_CRIT "Bug in ip_route_input" \
Expand Down Expand Up @@ -2053,8 +2053,6 @@ static int __mkroute_input(struct sk_buff *skb,
*result = rth;
err = 0;
cleanup:
/* release the working reference to the output device */
in_dev_put(out_dev);
return err;
}

Expand Down

0 comments on commit de5f660

Please sign in to comment.