usb: ohci: limit the number of link eds
commit95ed56939eb2eaa4e2f349fe6dcd13ca4edfd8fb
authorLi Qiang <liqiang6-s@360.cn>
Tue, 7 Feb 2017 10:23:33 +0000 (7 02:23 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 21 Feb 2017 07:11:42 +0000 (21 08:11 +0100)
treee24130153d36a5d09f3dbb724c585aa7eb2ecb16
parent26f670a244982335cc08943fb1ec099a2c81e42d
usb: ohci: limit the number of link eds

The guest may builds an infinite loop with link eds. This patch
limit the number of linked ed to avoid this.

Signed-off-by: Li Qiang <liqiang6-s@360.cn>
Message-id: 5899a02e.45ca240a.6c373.93c1@mx.google.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ohci.c