[efi] Provide efi_devpath_len()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-09-13 12:54:31 +01:00
parent 4a7d691697
commit 7107334391
6 changed files with 19 additions and 17 deletions
+1 -2
View File
@@ -1033,8 +1033,7 @@ static int efi_snp_probe ( struct net_device *netdev ) {
}
/* Allocate the new device path */
path_end = efi_devpath_end ( path.path );
path_prefix_len = ( ( ( void * ) path_end ) - ( ( void * ) path.path ));
path_prefix_len = efi_devpath_len ( path.path );
snpdev->path = zalloc ( path_prefix_len + sizeof ( *macpath ) +
sizeof ( *path_end ) );
if ( ! snpdev->path ) {