+32
−36
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
set_get_cmap() ignored the result of {get,put}_user(), causing ioctl(vt,
{G,P}IO_CMAP, 0xdeadbeef) to silently fail.
Another side effect of this: calling the PIO_CMAP ioctl with an invalid
buffer would zero the default colormap and the palette for all vts (all
colors set to black).
Leave the default colormap intact and return -EFAULT when
reading/writing to the userspace buffer fails.
Signed-off-by:
Michael Gehring <mg@ebfe.org>
Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>