From 736af671226c7aa93b7edbcfdf87fc6856a907e0 Mon Sep 17 00:00:00 2001 From: Gary Lin Date: Fri, 5 Jan 2018 16:51:39 +0800 Subject: [PATCH] httpboot: fix the infinite loop We should get out of the loop once the uri node is not the last node in the device path. Signed-off-by: Gary Lin --- httpboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpboot.c b/httpboot.c index 94299e2..7219e9b 100644 --- a/httpboot.c +++ b/httpboot.c @@ -162,7 +162,7 @@ find_httpboot (EFI_HANDLE device) /* to download the second stage loader in that case. */ NextNode = NextDevicePathNode(Node); if (!IsDevicePathEnd(NextNode)) - continue; + goto out; /* Save the current URI */ UriNode = (URI_DEVICE_PATH *)Node;