[PATCH AUTOSEL 6.17] fbdev: core: Fix ubsan warning in pixel_to_pat