tcp: len check is unnecessarily devastating, change to WARN_ON
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Sat, 2 Apr 2011 04:47:41 +0000 (21:47 -0700)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:57 +0000 (12:20 -0500)
commitb59c6af49620e9d068dd828bdd8cbc86f6a2caf7
tree86d06d8051d9a7565ab17dfaec5267512efc4553
parent1e5c73b4d8987a11f428c7ff54fd1b65284c1bd9
tcp: len check is unnecessarily devastating, change to WARN_ON

BugLink: http://bugs.launchpad.net/bugs/793702

[ Upstream commit 2fceec13375e5d98ef033c6b0ee03943fc460950 ]

All callers are prepared for alloc failures anyway, so this error
can safely be boomeranged to the callers domain without super
bad consequences. ...At worst the connection might go into a state
where each RTO tries to (unsuccessfully) re-fragment with such
a mis-sized value and eventually dies.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
net/ipv4/tcp_output.c