]> git.baikalelectronics.ru Git - kernel.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)
commit873c1fd8e4e82551448a068f588a9eacdb8cbd32
tree34870f61085509c0ff3d8cef819846fc31e94e7c
parent568347662032b1dd6a45205ed6178c5cffa0927f
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