diff options
Diffstat (limited to 'MdeModulePkg')
5 files changed, 17 insertions, 13 deletions
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDriver.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDriver.c index dd4068b..7e7512f 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDriver.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDriver.c @@ -23,7 +23,7 @@ EFI_DRIVER_BINDING_PROTOCOL gIScsiDriverBinding = { NULL
};
-EFI_GUID mIScsiPrivateGuid = ISCSI_PRIVATE_GUID;
+EFI_GUID gIScsiPrivateGuid = ISCSI_PRIVATE_GUID;
/**
@@ -63,7 +63,7 @@ IScsiDriverBindingSupported ( Status = gBS->OpenProtocol (
ControllerHandle,
- &mIScsiPrivateGuid,
+ &gIScsiPrivateGuid,
NULL,
This->DriverBindingHandle,
ControllerHandle,
@@ -195,7 +195,7 @@ IScsiDriverBindingStart ( //
Status = gBS->InstallProtocolInterface (
&ControllerHandle,
- &mIScsiPrivateGuid,
+ &gIScsiPrivateGuid,
EFI_NATIVE_INTERFACE,
&Private->IScsiIdentifier
);
@@ -299,7 +299,7 @@ IScsiDriverBindingStop ( Status = gBS->OpenProtocol (
IScsiController,
- &mIScsiPrivateGuid,
+ &gIScsiPrivateGuid,
(VOID **)&IScsiIdentifier,
This->DriverBindingHandle,
ControllerHandle,
@@ -316,7 +316,7 @@ IScsiDriverBindingStop ( //
gBS->UninstallProtocolInterface (
IScsiController,
- &mIScsiPrivateGuid,
+ &gIScsiPrivateGuid,
&Private->IScsiIdentifier
);
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDriver.h b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDriver.h index 8104624..78f0c44 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDriver.h +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDriver.h @@ -41,8 +41,7 @@ extern EFI_COMPONENT_NAME_PROTOCOL gIScsiComponentName; extern EFI_ISCSI_INITIATOR_NAME_PROTOCOL gIScsiInitiatorName;
-
-extern EFI_GUID mIScsiPrivateGuid;
+extern EFI_GUID gIScsiPrivateGuid;
typedef struct _ISCSI_PRIVATE_PROTOCOL {
UINT32 Reserved;
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf index e6b497e..dd71a80 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf @@ -41,6 +41,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. IScsiDhcp.h
IScsiCommon.h
IScsiCHAP.h
+ Md5.h
IScsiTcp4Io.c
IScsiProto.c
IScsiMisc.c
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiIbft.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiIbft.c index 8382433..ac978a2 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiIbft.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiIbft.c @@ -140,7 +140,7 @@ IScsiFillInitiatorSection ( //
// Get the identifier from the handle.
//
- Status = gBS->HandleProtocol (Handle, &mIScsiPrivateGuid, (VOID **) &IScsiIdentifier);
+ Status = gBS->HandleProtocol (Handle, &gIScsiPrivateGuid, (VOID **) &IScsiIdentifier);
if (EFI_ERROR (Status)) {
ASSERT (FALSE);
return ;
@@ -302,7 +302,7 @@ IScsiFillNICAndTargetSections ( SectionOffset = &Control->NIC0Offset;
for (Index = 0; Index < HandleCount; Index++) {
- Status = gBS->HandleProtocol (Handles[Index], &mIScsiPrivateGuid, (VOID **)&IScsiIdentifier);
+ Status = gBS->HandleProtocol (Handles[Index], &gIScsiPrivateGuid, (VOID **)&IScsiIdentifier);
if (EFI_ERROR (Status)) {
ASSERT (FALSE);
return ;
@@ -495,7 +495,7 @@ IScsiPublishIbft ( //
Status = gBS->LocateHandleBuffer (
ByProtocol,
- &mIScsiPrivateGuid,
+ &gIScsiPrivateGuid,
NULL,
&HandleCount,
&HandleBuffer
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c index 06b60da..adf8d9a 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c @@ -971,9 +971,14 @@ IScsiReceivePdu ( Len = ISCSI_GET_DATASEG_LEN (Header);
if (Len == 0) {
//
- // No data segment.
+ // No data segment.Form the pdu from a list of pdu segments.
//
- goto FORM_PDU;
+ *Pdu = NetbufFromBufList (NbufList, 0, 0, IScsiFreeNbufList, NbufList);
+ if (*Pdu == NULL) {
+ Status = EFI_OUT_OF_RESOURCES;
+ goto ON_EXIT;
+ }
+ return Status;
}
//
// Get the length of the padding bytes of the data segment.
@@ -1067,7 +1072,6 @@ IScsiReceivePdu ( NetbufTrim (DataSeg, PadLen, NET_BUF_TAIL);
}
-FORM_PDU:
//
// Form the pdu from a list of pdu segments.
//
|