audk/MdeModulePkg
Jiaxin Wu eab4016490 MdeModulePkg: Fix IPv4 stack potential disappeared issue
IP4_CONFIG2_INSTANCE->DataItem is used to save the configuration
data to NV variable. When the policy is changed from static to
DHCP, DnsServers info will be cleaned from DataItem first
(See Ip4Config2SetPolicy), it's correct because DnsServers info
should not be saved to NV variable.
But if there is any DnsServers info received from DHCP message, it
will be reset to DataItem again (See Ip4Config2SetDnsServerWorker),
which may cause the NV variable contain the DnsServers info while
the policy is DHCP (See Ip4Config2WriteConfigData).
Then, while the platform is reset, the issue happened. Because
Ip4Config2DataTypeDnsServer is set under DHCP policy, which is not
allowed by UEFI Spec and error returned.

This patch is used to resolve this potential issue.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Zhang Lubo <lubo.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
2016-07-07 08:46:48 +08:00
..
Application MdeModulePkg MemoryProfileInfo: Handle "/" character in the PDB path 2016-07-05 17:25:37 +08:00
Bus MdeModulePkg/EmmcDxe: Don't expose BlockIo interface for RPMB partition 2016-07-01 14:44:51 +08:00
Core MdeModulePkg DxeIplPeim: Add ASSERTs for unexpected AllocatePages failure 2016-07-05 13:32:07 +08:00
Include MdeModulePkg: Skip registering BootManagerMenu if absent 2016-07-05 17:33:05 +08:00
Library MdeModulePkg/BootMaintUi: Add error handling codes when AllocatePool fail 2016-07-06 16:23:02 +08:00
Logo MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Universal MdeModulePkg: Fix IPv4 stack potential disappeared issue 2016-07-07 08:46:48 +08:00
Contributions.txt
License.txt
MdeModulePkg.dec MdeModulePkg: Introduce new library class MemoryProfileLib 2016-07-01 09:39:57 +08:00
MdeModulePkg.dsc MdeModulePkg PiSmmCoreMemoryAllocLib: Extend to support MemoryProfileLib 2016-07-01 09:39:59 +08:00
MdeModulePkg.uni MdeModulePkg: Extend memory profile definitions for memory leak detection 2016-07-01 09:39:50 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00