Skip to content

Commit defba0f

Browse files
committed
[CHERRY-PICK] NetworkPkg/SnpDxe: Fix Snp used uninitialized
Ensures the Snp Structure is initialized as NULL. Signed-off-by: Eeshan Londhe <[email protected]>
1 parent ee61221 commit defba0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

NetworkPkg/SnpDxe/Snp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ SimpleNetworkDriverStart (
324324

325325
DEBUG ((DEBUG_NET, "\nSnpNotifyNetworkInterfaceIdentifier() "));
326326

327+
Snp = NULL;
328+
327329
Status = gBS->OpenProtocol (
328330
Controller,
329331
&gEfiDevicePathProtocolGuid,

0 commit comments

Comments
 (0)