Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188872
b: refs/heads/master
c: a50436f
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Mar 20, 2010
1 parent 1c7f78e commit 0cac442
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea93fd9456ad32cd85b2d7914b58c6313cc40c9e
refs/heads/master: a50436f2cd6e85794f7e1aad795ca8302177b896
3 changes: 3 additions & 0 deletions trunk/net/ipv4/ipmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,9 @@ static int ipmr_mfc_add(struct net *net, struct mfcctl *mfc, int mrtsock)
int line;
struct mfc_cache *uc, *c, **cp;

if (mfc->mfcc_parent >= MAXVIFS)
return -ENFILE;

line = MFC_HASH(mfc->mfcc_mcastgrp.s_addr, mfc->mfcc_origin.s_addr);

for (cp = &net->ipv4.mfc_cache_array[line];
Expand Down
3 changes: 3 additions & 0 deletions trunk/net/ipv6/ip6mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,6 +1113,9 @@ static int ip6mr_mfc_add(struct net *net, struct mf6cctl *mfc, int mrtsock)
unsigned char ttls[MAXMIFS];
int i;

if (mfc->mf6cc_parent >= MAXMIFS)
return -ENFILE;

memset(ttls, 255, MAXMIFS);
for (i = 0; i < MAXMIFS; i++) {
if (IF_ISSET(i, &mfc->mf6cc_ifset))
Expand Down

0 comments on commit 0cac442

Please sign in to comment.