Ver código fonte

[efi] Fix order of events on SNP removal path

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 anos atrás
pai
commit
226d5f2caf
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      src/interface/efi/efi_snp.c

+ 2
- 1
src/interface/efi/efi_snp.c Ver arquivo

1101
 	       snpdev, netdev->name, efi_handle_name ( snpdev->handle ) );
1101
 	       snpdev, netdev->name, efi_handle_name ( snpdev->handle ) );
1102
 	return 0;
1102
 	return 0;
1103
 
1103
 
1104
+	list_del ( &snpdev->list );
1104
 	if ( snpdev->package_list )
1105
 	if ( snpdev->package_list )
1105
 		efi_snp_hii_uninstall ( snpdev );
1106
 		efi_snp_hii_uninstall ( snpdev );
1106
 	efi_child_del ( efidev->device, snpdev->handle );
1107
 	efi_child_del ( efidev->device, snpdev->handle );
1172
 	}
1173
 	}
1173
 
1174
 
1174
 	/* Uninstall the SNP */
1175
 	/* Uninstall the SNP */
1176
+	list_del ( &snpdev->list );
1175
 	if ( snpdev->package_list )
1177
 	if ( snpdev->package_list )
1176
 		efi_snp_hii_uninstall ( snpdev );
1178
 		efi_snp_hii_uninstall ( snpdev );
1177
 	efi_child_del ( snpdev->efidev->device, snpdev->handle );
1179
 	efi_child_del ( snpdev->efidev->device, snpdev->handle );
1178
-	list_del ( &snpdev->list );
1179
 	bs->UninstallMultipleProtocolInterfaces (
1180
 	bs->UninstallMultipleProtocolInterfaces (
1180
 			snpdev->handle,
1181
 			snpdev->handle,
1181
 			&efi_simple_network_protocol_guid, &snpdev->snp,
1182
 			&efi_simple_network_protocol_guid, &snpdev->snp,

Carregando…
Cancelar
Salvar