]> Git Repo - qemu.git/commit
net: rtl8139: limit processing of ring descriptors
authorPrasad J Pandit <[email protected]>
Fri, 21 Oct 2016 12:09:29 +0000 (17:39 +0530)
committerJason Wang <[email protected]>
Wed, 26 Oct 2016 01:57:59 +0000 (09:57 +0800)
commitc7c35916692fe010fef25ac338443d3fe40be225
treedf4478904ee489bdd6def25355eba75848d5aef0
parentfdda170e50b8af062cf5741e12c4fb5e57a2eacf
net: rtl8139: limit processing of ring descriptors

RTL8139 ethernet controller in C+ mode supports multiple
descriptor rings, each with maximum of 64 descriptors. While
processing transmit descriptor ring in 'rtl8139_cplus_transmit',
it does not limit the descriptor count and runs forever. Add
check to avoid it.

Reported-by: Andrew Henderson <[email protected]>
Signed-off-by: Prasad J Pandit <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
hw/net/rtl8139.c
This page took 0.024219 seconds and 4 git commands to generate.