summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c
index 937da41f2c..7288234bfa 100644
--- a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c
+++ b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c
@@ -129,6 +129,9 @@ EfiNicIp4ConfigSetInfo (
DispatchDpc ();
}
+ if (NicConfig == NULL) {
+ return Status;
+ }
//
// A dedicated timer is used to poll underlying media status.In case of
// cable swap, a new round auto configuration will be initiated. The timer