diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2010-05-10 05:59:37 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2010-05-10 08:20:42 -0400 |
| commit | dbb6be6d5e974c42bbecd183effaa0df69e1dd8b (patch) | |
| tree | 5735cb47e70853d057a9881dd0ce44b83e88fa63 /net/ipv4/tcp_input.c | |
| parent | 6a867a395558a7f882d041783e4cdea6744ca2bf (diff) | |
| parent | b57f95a38233a2e73b679bea4a5453a1cc2a1cc9 (diff) | |
Merge branch 'linus' into timers/core
Reason: Further posix_cpu_timer patches depend on mainline changes
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'net/ipv4/tcp_input.c')
| -rw-r--r-- | net/ipv4/tcp_input.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 788851ca8c5d..f240f57b2199 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
| @@ -62,6 +62,7 @@ | |||
| 62 | */ | 62 | */ |
| 63 | 63 | ||
| 64 | #include <linux/mm.h> | 64 | #include <linux/mm.h> |
| 65 | #include <linux/slab.h> | ||
| 65 | #include <linux/module.h> | 66 | #include <linux/module.h> |
| 66 | #include <linux/sysctl.h> | 67 | #include <linux/sysctl.h> |
| 67 | #include <linux/kernel.h> | 68 | #include <linux/kernel.h> |
| @@ -2511,6 +2512,9 @@ static void tcp_mark_head_lost(struct sock *sk, int packets) | |||
| 2511 | int err; | 2512 | int err; |
| 2512 | unsigned int mss; | 2513 | unsigned int mss; |
| 2513 | 2514 | ||
| 2515 | if (packets == 0) | ||
| 2516 | return; | ||
| 2517 | |||
| 2514 | WARN_ON(packets > tp->packets_out); | 2518 | WARN_ON(packets > tp->packets_out); |
| 2515 | if (tp->lost_skb_hint) { | 2519 | if (tp->lost_skb_hint) { |
| 2516 | skb = tp->lost_skb_hint; | 2520 | skb = tp->lost_skb_hint; |
