From: Igor Druzhinin Date: Thu, 10 Oct 2019 08:58:09 +0000 (+0200) Subject: efi/boot: add missing pointer dereference in set_color X-Git-Tag: temptemp~1252 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=17f3029da4048a2a77c8a0a5c1995a1edd0bb8e9;p=people%2Fhx242%2Fxen.git efi/boot: add missing pointer dereference in set_color Signed-off-by: Igor Druzhinin Reviewed-by: Jan Beulich Release-acked-by: Juergen Gross --- diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c index 79193784ff..00fd139175 100644 --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -1114,7 +1114,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;