From a2782d6419748c284fcae3256280a73ada7e98da Mon Sep 17 00:00:00 2001 From: Bing Luo Date: Sat, 28 Dec 2024 16:35:34 +0800 Subject: [PATCH] NetworkPkg/UefiPxeBcDxe: Bugfix for pxe driver Ensure the poniter is not null before free it Signed-off-by: Bing Luo --- MdeModulePkg/Universal/RegularExpressionDxe/oniguruma | 2 +- MdePkg/Library/BaseFdtLib/libfdt | 2 +- MdePkg/Library/MipiSysTLib/mipisyst | 2 +- NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c | 8 ++++++-- RedfishPkg/Library/JsonLib/jansson | 2 +- SecurityPkg/DeviceSecurity/SpdmLib/libspdm | 2 +- 6 files changed, 11 insertions(+), 7 deletions(-) diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/oniguruma b/MdeModulePkg/Universal/RegularExpressionDxe/oniguruma index abfc8ff81df4..5eaee9f5f8f6 160000 --- a/MdeModulePkg/Universal/RegularExpressionDxe/oniguruma +++ b/MdeModulePkg/Universal/RegularExpressionDxe/oniguruma @@ -1 +1 @@ -Subproject commit abfc8ff81df4067f309032467785e06975678f0d +Subproject commit 5eaee9f5f8f674aff4875c2b35db00758fa349d6 diff --git a/MdePkg/Library/BaseFdtLib/libfdt b/MdePkg/Library/BaseFdtLib/libfdt index cfff805481bd..72517644611f 160000 --- a/MdePkg/Library/BaseFdtLib/libfdt +++ b/MdePkg/Library/BaseFdtLib/libfdt @@ -1 +1 @@ -Subproject commit cfff805481bdea27f900c32698171286542b8d3c +Subproject commit 72517644611f19a090c1c9dcb11d6c78a642384b diff --git a/MdePkg/Library/MipiSysTLib/mipisyst b/MdePkg/Library/MipiSysTLib/mipisyst index 370b5944c046..acb8d88fb4a2 160000 --- a/MdePkg/Library/MipiSysTLib/mipisyst +++ b/MdePkg/Library/MipiSysTLib/mipisyst @@ -1 +1 @@ -Subproject commit 370b5944c046bab043dd8b133727b2135af7747a +Subproject commit acb8d88fb4a2af762020bcb70d30a21b0f891ef2 diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c b/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c index 4cd915b41157..7363f62c8193 100644 --- a/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c +++ b/NetworkPkg/UefiPxeBcDxe/PxeBcDriver.c @@ -246,7 +246,9 @@ PxeBcDestroyIp4Children ( &Private->PxeBc, NULL ); - FreePool (Private->Ip4Nic->DevicePath); + if(Private->Ip4Nic->DevicePath != NULL) { + FreePool (Private->Ip4Nic->DevicePath); + } if (Private->Snp != NULL) { // @@ -407,7 +409,9 @@ PxeBcDestroyIp6Children ( &Private->PxeBc, NULL ); - FreePool (Private->Ip6Nic->DevicePath); + if(Private->Ip6Nic->DevicePath != NULL) { + FreePool (Private->Ip6Nic->DevicePath); + } if (Private->Snp != NULL) { // diff --git a/RedfishPkg/Library/JsonLib/jansson b/RedfishPkg/Library/JsonLib/jansson index e9ebfa7e77a6..61fc3d0e28e1 160000 --- a/RedfishPkg/Library/JsonLib/jansson +++ b/RedfishPkg/Library/JsonLib/jansson @@ -1 +1 @@ -Subproject commit e9ebfa7e77a6bee77df44e096b100e7131044059 +Subproject commit 61fc3d0e28e1a35410af42e329cd977095ec32d2 diff --git a/SecurityPkg/DeviceSecurity/SpdmLib/libspdm b/SecurityPkg/DeviceSecurity/SpdmLib/libspdm index 98ef964e1e9a..48cc0b3af781 160000 --- a/SecurityPkg/DeviceSecurity/SpdmLib/libspdm +++ b/SecurityPkg/DeviceSecurity/SpdmLib/libspdm @@ -1 +1 @@ -Subproject commit 98ef964e1e9a0c39c7efb67143d3a13a819432e0 +Subproject commit 48cc0b3af781dd949397d86fc25b3ef99e40db70