diff options
author | Bjørn Mork <bjorn@mork.no> | 2013-01-28 23:51:28 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-30 17:35:44 -0500 |
commit | 70c37bf97f2a91accba76080db69144f3b69f736 (patch) | |
tree | 2c5b72a06bba90a0cfbf4b1ae93c4ba5d41278ef /samples | |
parent | 6cdd20c380eb62eab757c5a6ccc90dac7ecd774b (diff) | |
download | kernel_goldelico_gta04-70c37bf97f2a91accba76080db69144f3b69f736.zip kernel_goldelico_gta04-70c37bf97f2a91accba76080db69144f3b69f736.tar.gz kernel_goldelico_gta04-70c37bf97f2a91accba76080db69144f3b69f736.tar.bz2 |
net: usbnet: prevent buggy devices from killing us
A device sending 0 length frames as fast as it can has been
observed killing the host system due to the resulting memory
pressure.
Temporarily disable RX skb allocation and URB submission when
the current error ratio is high, preventing us from trying to
allocate an infinite number of skbs. Reenable as soon as we
are finished processing the done queue, allowing the device
to continue working after short error bursts.
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions