mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/DxeIpIoLib: Fixed the error ASSERT incorrectly used in IpIoAddIp().
* In DxeIpIo, an ASSERT check is incorrectly used in IpIoAddIp(), which result debug image hang when this API is called, this patch is to fix this issue. Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wang Fan <fan.wang@intel.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
parent
4a64cbda86
commit
6478baf891
|
@ -1742,12 +1742,12 @@ IpIoAddIp (
|
|||
EFI_EVENT Event;
|
||||
|
||||
ASSERT (IpIo != NULL);
|
||||
ASSERT ((IpIo->IpVersion == IP_VERSION_4) || (IpIo->IpVersion == IP_VERSION_6));
|
||||
|
||||
IpInfo = AllocatePool (sizeof (IP_IO_IP_INFO));
|
||||
if (IpInfo == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
ASSERT ((IpInfo->IpVersion == IP_VERSION_4) || (IpInfo->IpVersion == IP_VERSION_6));
|
||||
|
||||
//
|
||||
// Init this IpInfo, set the Addr and SubnetMask to 0 before we configure the IP
|
||||
|
|
Loading…
Reference in New Issue