Skip to content

Commit

Permalink
10341 uts: boot_fb_eraseline_impl() may use uninitialized variable
Browse files Browse the repository at this point in the history
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome authored and Dan McDonald committed Feb 4, 2019
1 parent a27563e commit a6f5e66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions usr/src/uts/i86pc/boot/boot_fb.c
Expand Up @@ -492,8 +492,7 @@ boot_fb_eraseline_impl(uint16_t x, uint16_t y)

toffset = x * fb_info.bpp + y * fb_info.pitch;
dst = fb_info.fb + toffset;
if (fb_info.shadow_fb != NULL)
sdst = fb_info.shadow_fb + toffset;
sdst = fb_info.shadow_fb + toffset;

for (i = 0; i < boot_fb_font.height; i++) {
uint8_t *dest = dst + i * fb_info.pitch;
Expand Down

0 comments on commit a6f5e66

Please sign in to comment.