mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-07 19:45:07 +02:00
NetworkPkg: Bug fix of iSCSI to support MPIO
If two attempts added on different NIC and enable MPIO attribute, then change the attempts order. If both two attempts succeed to connect the target,it should abort the later one in the order and uninstall ExtScsiPassThruProtocol Interface, But now it unistall it twice. Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Wu Jiaxin <jiaxin.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo <lubo.zhang@intel.com> Reviewed-By: Ye Ting <ting.ye@intel.com> Reviewed-By: Fu Siyuan <siyuan.fu@intel.com> Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com>
This commit is contained in:
parent
fca117fd3f
commit
89446d8967
@ -865,10 +865,22 @@ IScsiStart (
|
||||
IScsiSessionAbort (ExistPrivate->Session);
|
||||
}
|
||||
|
||||
Status = IScsiCleanDriverData (ExistPrivate);
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto ON_ERROR;
|
||||
if (ExistPrivate->DevicePath != NULL) {
|
||||
Status = gBS->UninstallProtocolInterface (
|
||||
ExistPrivate->ExtScsiPassThruHandle,
|
||||
&gEfiDevicePathProtocolGuid,
|
||||
ExistPrivate->DevicePath
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
goto ON_ERROR;
|
||||
}
|
||||
|
||||
FreePool (ExistPrivate->DevicePath);
|
||||
}
|
||||
|
||||
gBS->CloseEvent (ExistPrivate->ExitBootServiceEvent);
|
||||
FreePool (ExistPrivate);
|
||||
|
||||
}
|
||||
} else {
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user