mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[xhci] Avoid accessing beyond end of endpoint context array
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1558,7 +1558,7 @@ static void xhci_transfer ( struct xhci_device *xhci,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Identify endpoint */
|
/* Identify endpoint */
|
||||||
if ( ( trb->endpoint > XHCI_CTX_END ) ||
|
if ( ( trb->endpoint >= XHCI_CTX_END ) ||
|
||||||
( ( endpoint = slot->endpoint[trb->endpoint] ) == NULL ) ) {
|
( ( endpoint = slot->endpoint[trb->endpoint] ) == NULL ) ) {
|
||||||
DBGC ( xhci, "XHCI %s slot %d transfer event invalid epid "
|
DBGC ( xhci, "XHCI %s slot %d transfer event invalid epid "
|
||||||
"%d:\n", xhci->name, slot->id, trb->endpoint );
|
"%d:\n", xhci->name, slot->id, trb->endpoint );
|
||||||
|
|||||||
Reference in New Issue
Block a user