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
This commit is contained in:
@@ -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.
|
||||
//
|
||||
|
Reference in New Issue
Block a user