summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-03-31 09:16:04 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-03-31 09:22:22 +0300
commit0809cd5f9356372c966b7df71a6fb09f6ff87073 (patch)
treeed1f8d76905ce2eda9020a20a30b1bbd65e435da /lib
parentd8eafb16c85bc3b5d85d7ba8ebb1438cc0ae168f (diff)
downloadu-boot-0809cd5f9356372c966b7df71a6fb09f6ff87073.tar.xz
efi_loader: Uart device path missing break
In the devicepath node to text conversion for Uart nodes a break statement is missing. Indicated by Coverity Scan CID 330038 Fixes: 62df6e9c9994 ("efi_loader: Uart device path") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_device_path_to_text.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_device_path_to_text.c b/lib/efi_loader/efi_device_path_to_text.c
index 43554cd771..675e80bcb8 100644
--- a/lib/efi_loader/efi_device_path_to_text.c
+++ b/lib/efi_loader/efi_device_path_to_text.c
@@ -126,8 +126,10 @@ static char *dp_msging(char *s, struct efi_device_path *dp)
switch (uart->stop_bits) {
case 2:
s += sprintf(s, "1.5)");
+ break;
default:
s += sprintf(s, "%d)", uart->stop_bits);
+ break;
}
break;
}