From: Igor Druzhinin Date: Fri, 25 Oct 2019 10:01:17 +0000 (+0200) Subject: efi/boot: add missing pointer dereference in set_color X-Git-Tag: archive/raspbian/4.11.3+24-g14b62ab3e5-1+rpi1^2~55^2~92 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b6ef69de690e9a5333388defd593818f1d944939;p=xen.git efi/boot: add missing pointer dereference in set_color Signed-off-by: Igor Druzhinin Reviewed-by: Jan Beulich master commit: 17f3029da4048a2a77c8a0a5c1995a1edd0bb8e9 master date: 2019-10-10 10:58:09 +0200 --- diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c index a9917f31f1..43115387b5 100644 --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -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;