]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Apr 2011 04:47:41 +0000 (21:47 -0700)
commit2fceec13375e5d98ef033c6b0ee03943fc460950
tree34870f61085509c0ff3d8cef819846fc31e94e7c
parent2cab86bee8e7f353e6ac8c15b3eb906643497644
tcp: len check is unnecessarily devastating, change to WARN_ON

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>
net/ipv4/tcp_output.c