]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[uhci] Add missing little-endian conversion
authorMichael Brown <mcb30@ipxe.org>
Tue, 4 Aug 2026 07:42:01 +0000 (08:42 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 4 Aug 2026 07:43:01 +0000 (08:43 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/usb/uhci.c

index 2c70a11bd15db04f9456505be91837d8b5d9443c..3eb3ab7bdd60ed0485f372348f79add1c78ebbda 100644 (file)
@@ -338,7 +338,7 @@ static void uhci_describe ( struct uhci_ring *ring, void *data,
                            UHCI_CONTROL_LEN ( frag_len ) );
                desc->control = cpu_to_le32 ( control );
                if ( data )
-                       desc->data = virt_to_phys ( data );
+                       desc->data = cpu_to_le32 ( virt_to_phys ( data ) );
                wmb();
                desc->status = UHCI_STATUS_ACTIVE;