Re: [PATCH v2 03/12] macfb: fix overflow of color_palette array

2021-10-04 Thread Laurent Vivier
Le 04/10/2021 à 23:19, Mark Cave-Ayland a écrit : > The palette_current index counter has a maximum size of 256 * 3 to cover a > full > color palette of 256 RGB entries. Linux assumes that the palette_current index > wraps back around to zero after writing 256 RGB entries so ensure that > palette_

[PATCH v2 03/12] macfb: fix overflow of color_palette array

2021-10-04 Thread Mark Cave-Ayland
The palette_current index counter has a maximum size of 256 * 3 to cover a full color palette of 256 RGB entries. Linux assumes that the palette_current index wraps back around to zero after writing 256 RGB entries so ensure that palette_current is reset at this point to prevent data corruption wit