• Maciej W. Rozycki's avatar
    vt_ioctl: Revert VT_RESIZEX parameter handling removal · a90c275e
    Maciej W. Rozycki authored
    Revert the removal of code handling extra VT_RESIZEX ioctl's parameters
    beyond those that VT_RESIZE supports, fixing a functional regression
    causing `svgatextmode' not to resize the VT anymore.
    
    As a consequence of the reverted change when the video adapter is
    reprogrammed from the original say 80x25 text mode using a 9x16
    character cell (720x400 pixel resolution) to say 80x37 text mode and the
    same character cell (720x592 pixel resolution), the VT geometry does not
    get updated and only upper two thirds of the screen are used for the VT,
    and the lower part remains blank.  The proportions change according to
    text mode geometries chosen.
    
    Revert the change verbatim then, bringing back previous VT resizing.
    Signed-off-by: default avatarMaciej W. Rozycki <macro@orcam.me.uk>
    Fixes: 988d0763 ("vt_ioctl: make VT_RESIZEX behave like VT_RESIZE")
    Cc: stable@vger.kernel.org # v5.10+
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    a90c275e
vt_ioctl.c 29.7 KB