]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
efi/boot: add missing pointer dereference in set_color
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Fri, 25 Oct 2019 10:01:17 +0000 (12:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Oct 2019 10:01:17 +0000 (12:01 +0200)
Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 17f3029da4048a2a77c8a0a5c1995a1edd0bb8e9
master date: 2019-10-10 10:58:09 +0200

xen/common/efi/boot.c

index a9917f31f1d165607457a00191e0ef939cdbb2da..43115387b5c6a104fd54a6ceb208978cb1b21b4c 100644 (file)
@@ -1051,7 +1051,7 @@ static int __init __maybe_unused set_color(u32 mask, int bpp, u8 *pos, u8 *sz)
        return -EINVAL;
    for ( *pos = 0; !(mask & 1); ++*pos )
        mask >>= 1;
-   for ( *sz = 0; mask & 1; ++sz)
+   for ( *sz = 0; mask & 1; ++*sz)
        mask >>= 1;
    if ( mask )
        return -EINVAL;