Skip to content

Commit b989871

Browse files
makubackiWenbo Hou
authored andcommitted
NetworkPkg: Reset DHCP Service Binding IO Status on Stop
Resets DhcpSb->IoStatus on stop to prevent a stale state from persisting which might impact future operations dependent on the IO status. Co-authored-by: Wenbo Hou <[email protected]> Signed-off-by: Michael Kubacki <[email protected]>
1 parent b9c072a commit b989871

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

NetworkPkg/Dhcp4Dxe/Dhcp4Impl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,7 @@ EfiDhcp4Stop (
10871087

10881088
DhcpSb->DhcpState = Dhcp4Stopped;
10891089
DhcpSb->ServiceState = DHCP_UNCONFIGED;
1090+
DhcpSb->IoStatus = EFI_NOT_STARTED;
10901091

10911092
gBS->RestoreTPL (OldTpl);
10921093
return EFI_SUCCESS;

0 commit comments

Comments
 (0)