]> git.baikalelectronics.ru Git - uboot.git/commitdiff
efi_loader: Uart device path missing break
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 31 Mar 2021 06:16:04 +0000 (08:16 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 31 Mar 2021 06:22:22 +0000 (06:22 +0000)
In the devicepath node to text conversion for Uart nodes a break statement
is missing.

Indicated by Coverity Scan CID 330038
Fixes: 0bbb2e9afdcd ("efi_loader: Uart device path")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_device_path_to_text.c

index 43554cd771bf92664c3243a4a51515538c62e4fb..675e80bcb8a360ee96cee3f7070739506d72c362 100644 (file)
@@ -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;
        }