mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 18:30:28 +03:00
[usb] Use correct length for memcpy()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1005,8 +1005,8 @@ static int usb_describe ( struct usb_device *usb,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Describe function */
|
/* Describe function */
|
||||||
memcpy ( &desc->class, &association->class,
|
memcpy ( &desc->class.class, &association->class,
|
||||||
sizeof ( desc->class ) );
|
sizeof ( desc->class.class ) );
|
||||||
desc->count = association->count;
|
desc->count = association->count;
|
||||||
for ( i = 0 ; i < association->count ; i++ )
|
for ( i = 0 ; i < association->count ; i++ )
|
||||||
interfaces[i] = ( first + i );
|
interfaces[i] = ( first + i );
|
||||||
|
|||||||
Reference in New Issue
Block a user