Update for code security.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7255 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24
2009-01-13 08:29:55 +00:00
parent f8e01ca87b
commit 81464cf106
4 changed files with 23 additions and 3 deletions

View File

@@ -1800,6 +1800,8 @@ ConnectDevicePath (
// After this call DevicePath points to the next Instance
//
Instance = GetNextDevicePathInstance (&DevicePath, &Size);
ASSERT (Instance != NULL);
Next = Instance;
while (!IsDevicePathEndType (Next)) {
Next = NextDevicePathNode (Next);