david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[usb] Use correct length for memcpy()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-03-21 14:21:54 +02:00
parent d25e7daf47
commit 7b113bc744
1 changed files with 2 additions and 1 deletions

View File

@ -1022,7 +1022,8 @@ static int usb_describe ( struct usb_device *usb,
}
/* Describe function */
memcpy ( &desc->class, &interface->class, sizeof ( desc->class ) );
memcpy ( &desc->class.class, &interface->class,
sizeof ( desc->class.class ) );
desc->count = 1;
interfaces[0] = first;