mirror of https://github.com/ipxe/ipxe.git
[ehci] Do not treat zero-length NULL pointers as unreachable
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/41/head
parent
f9e192605c
commit
6424a38323
|
@ -603,6 +603,8 @@ static int ehci_enqueue ( struct ehci_device *ehci, struct ehci_ring *ring,
|
||||||
|
|
||||||
/* Fail if any portion is unreachable */
|
/* Fail if any portion is unreachable */
|
||||||
for ( i = 0 ; i < count ; i++ ) {
|
for ( i = 0 ; i < count ; i++ ) {
|
||||||
|
if ( ! xfer[i].len )
|
||||||
|
continue;
|
||||||
phys = ( virt_to_phys ( xfer[i].data ) + xfer[i].len - 1 );
|
phys = ( virt_to_phys ( xfer[i].data ) + xfer[i].len - 1 );
|
||||||
if ( ( phys > 0xffffffffUL ) && ( ! ehci->addr64 ) )
|
if ( ( phys > 0xffffffffUL ) && ( ! ehci->addr64 ) )
|
||||||
return -ENOTSUP;
|
return -ENOTSUP;
|
||||||
|
|
Loading…
Reference in New Issue