diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/neighbour.c | 5 | ||||
-rw-r--r-- | net/core/skbuff.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 2684794458ca..27d3fefeaa13 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -2414,7 +2414,10 @@ static struct pneigh_entry *pneigh_get_next(struct seq_file *seq, | |||
2414 | struct net *net = seq_file_net(seq); | 2414 | struct net *net = seq_file_net(seq); |
2415 | struct neigh_table *tbl = state->tbl; | 2415 | struct neigh_table *tbl = state->tbl; |
2416 | 2416 | ||
2417 | pn = pn->next; | 2417 | do { |
2418 | pn = pn->next; | ||
2419 | } while (pn && !net_eq(pneigh_net(pn), net)); | ||
2420 | |||
2418 | while (!pn) { | 2421 | while (!pn) { |
2419 | if (++state->bucket > PNEIGH_HASHMASK) | 2422 | if (++state->bucket > PNEIGH_HASHMASK) |
2420 | break; | 2423 | break; |
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 7dc05ecf040a..678ae4e783aa 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c | |||
@@ -2279,7 +2279,7 @@ static int skb_prepare_for_shift(struct sk_buff *skb) | |||
2279 | * @shiftlen: shift up to this many bytes | 2279 | * @shiftlen: shift up to this many bytes |
2280 | * | 2280 | * |
2281 | * Attempts to shift up to shiftlen worth of bytes, which may be less than | 2281 | * Attempts to shift up to shiftlen worth of bytes, which may be less than |
2282 | * the length of the skb, from tgt to skb. Returns number bytes shifted. | 2282 | * the length of the skb, from skb to tgt. Returns number bytes shifted. |
2283 | * It's up to caller to free skb if everything was shifted. | 2283 | * It's up to caller to free skb if everything was shifted. |
2284 | * | 2284 | * |
2285 | * If @tgt runs out of frags, the whole operation is aborted. | 2285 | * If @tgt runs out of frags, the whole operation is aborted. |