efi/boot: add missing pointer dereference in set_color

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
Igor Druzhinin authored and Jan Beulich committed 2019-10-10 10:58:09 +02:00
1 parent 1b00c16bdf
commit 17f3029da4
1 file changed
+1 -1
+1 -1
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.