1. Update iSCSI UI to be more user-friendly.

2. Fix potential memory leak issue in IScsiConfig.c.

Signed-off-by: tye
Reviewed-by: xdu2
Reviewed-by: lgao4



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12245 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
tye1
2011-08-31 12:00:09 +00:00
parent 329e5116b6
commit c0d494b5a7
6 changed files with 182 additions and 174 deletions

View File

@@ -297,7 +297,7 @@ IScsiMacAddrToStr (
for (Index = 0; Index < Len; Index++) {
Str[3 * Index] = (CHAR16) IScsiHexString[(Mac->Addr[Index] >> 4) & 0x0F];
Str[3 * Index + 1] = (CHAR16) IScsiHexString[Mac->Addr[Index] & 0x0F];
Str[3 * Index + 2] = L'-';
Str[3 * Index + 2] = L':';
}
String = &Str[3 * Index - 1] ;
@@ -640,6 +640,14 @@ IScsiRemoveNic (
}
}
//
// Free attempt is created but not saved to system.
//
if (mPrivate->NewAttempt != NULL) {
FreePool (mPrivate->NewAttempt);
mPrivate->NewAttempt = NULL;
}
return EFI_SUCCESS;
}