Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b9c4595bc4947faa236a849324fe3492e388d949
Commit:     b9c4595bc4947faa236a849324fe3492e388d949
Parent:     1b6d427bb7eb69e6dc4f194a5b0f4a382a16ff82
Author:     Ilpo Järvinen <[EMAIL PROTECTED]>
AuthorDate: Fri Jul 27 16:36:17 2007 +0300
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:47:59 2007 -0700

    [TCP]: Don't panic if S+L skb is detected
    
    BUG_ON is an overkill. In fact, I was mislead by BUG_TRAP
    severity (equals to WARN_ON) which is much lower than BUG_ON's
    (that panics).
    
    Signed-off-by: Ilpo Järvinen <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 include/net/tcp.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/net/tcp.h b/include/net/tcp.h
index 064c92f..b92bdc7 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -758,8 +758,8 @@ static inline __u32 tcp_current_ssthresh(const struct sock 
*sk)
                            (tp->snd_cwnd >> 2)));
 }
 
-/* Use define here intentionally to get BUG_ON location shown at the caller */
-#define tcp_verify_left_out(tp)        BUG_ON(tcp_left_out(tp) > 
tp->packets_out)
+/* Use define here intentionally to get WARN_ON location shown at the caller */
+#define tcp_verify_left_out(tp)        WARN_ON(tcp_left_out(tp) > 
tp->packets_out)
 
 extern void tcp_enter_cwr(struct sock *sk, const int set_ssthresh);
 extern __u32 tcp_init_cwnd(struct tcp_sock *tp, struct dst_entry *dst);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to