Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168739
b: refs/heads/master
c: d0490cf
h: refs/heads/master
i:
  168737: f1841af
  168735: 00df045
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Nov 14, 2009
1 parent 77696a6 commit 0a4585b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: b8a623bf836ccfab09a5a6daf62116f455082e6e
refs/heads/master: d0490cfdf440fded2c292cfb8bb9272fc9ef6943
4 changes: 3 additions & 1 deletion trunk/net/ipv4/ipmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,10 @@ static int vif_add(struct net *net, struct vifctl *vifc, int mrtsock)
return -EINVAL;
}

if ((in_dev = __in_dev_get_rtnl(dev)) == NULL)
if ((in_dev = __in_dev_get_rtnl(dev)) == NULL) {
dev_put(dev);
return -EADDRNOTAVAIL;
}
IPV4_DEVCONF(in_dev->cnf, MC_FORWARDING)++;
ip_rt_multicast_event(in_dev);

Expand Down

0 comments on commit 0a4585b

Please sign in to comment.