Prasad J Pandit 34e29ce754 net: pcnet: check rx/tx descriptor ring length
The AMD PC-Net II emulator has set of control and status(CSR)
registers. Of these, CSR76 and CSR78 hold receive and transmit
descriptor ring length respectively. This ring length could range
from 1 to 65535. Setting ring length to zero leads to an infinite
loop in pcnet_rdra_addr() or pcnet_transmit(). Add check to avoid it.

Reported-by: Li Qiang <liqiang6-s@360.cn>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2016-10-26 09:57:59 +08:00
..
2016-10-17 14:13:58 +02:00
2016-10-04 13:28:07 +01:00
2016-10-25 10:25:27 +01:00
2016-10-10 16:23:40 +01:00
2016-10-24 15:46:10 +02:00
2016-06-17 16:33:48 +10:00
2016-10-24 16:26:56 +01:00
2016-06-14 15:59:13 +01:00
2016-10-24 17:29:15 -02:00
2016-10-04 14:25:08 +01:00
2016-05-18 15:04:27 +03:00
2016-10-24 15:27:20 +02:00
2016-09-23 11:42:52 +08:00
2016-07-29 00:07:09 +03:00
2016-01-29 15:07:25 +00:00
2016-09-22 18:13:08 +01:00
2016-09-15 15:32:22 +03:00
2016-09-29 11:43:22 +08:00
2016-09-15 15:32:22 +03:00
2016-10-24 15:03:09 +01:00
2016-10-17 10:58:03 -06:00
2016-10-24 15:27:20 +02:00
2016-10-04 13:28:07 +01:00