diff options
author | ywu21 <ywu21@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-16 07:17:19 +0000 |
---|---|---|
committer | ywu21 <ywu21@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-16 07:17:19 +0000 |
commit | 5af5b3fd84da60fe0ebe2fd3cbab4a2f79bdbec4 (patch) | |
tree | da14971a5321b85b508c2e0284897a68cb591ea2 /MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c | |
parent | 727501bb17c4182e42438b7715383cc5f15434a0 (diff) | |
download | edk2-platforms-5af5b3fd84da60fe0ebe2fd3cbab4a2f79bdbec4.tar.xz |
1) fix one goto issue in IScsiProto.c
2) add Md5.h in [Sources.common] of inf
3) change mIScsiPrivateGuid to gIScsiPrivateGuid
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7042 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c')
-rw-r--r-- | MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c index 06b60da9b1..adf8d9a3c1 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.
//
|