]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiDevicePathLib/DevicePathFromText.c
MdePkg/DevicePathLib: Fix FromText bug for multi-instance devicepath
[mirror_edk2.git] / MdePkg / Library / UefiDevicePathLib / DevicePathFromText.c
index a52cbef48f45b7a3c391a8d2de2e87f1495c5662..3c9df289b6d91a012ffdcb5cdd4baa4ef91a29b5 100644 (file)
@@ -3500,6 +3500,7 @@ UefiDevicePathLibConvertTextToDevicePath (
       DeviceNode = (EFI_DEVICE_PATH_PROTOCOL *) AllocatePool (END_DEVICE_PATH_LENGTH);\r
       ASSERT (DeviceNode != NULL);\r
       SetDevicePathEndNode (DeviceNode);\r
+      DeviceNode->SubType = END_INSTANCE_DEVICE_PATH_SUBTYPE;\r
 \r
       NewDevicePath = AppendDevicePathNode (DevicePath, DeviceNode);\r
       FreePool (DevicePath);\r