• Martin Schwidefsky's avatar
    s390/3270: fix allocation of tty3270_screen structure · 2202b364
    Martin Schwidefsky authored
    commit 36d9f4d3b68c7035ead3850dc85f310a579ed0eb upstream.
    
    The tty3270_alloc_screen function is called from tty3270_install with
    swapped arguments, the number of columns instead of rows and vice versa.
    The number of rows is typically smaller than the number of columns which
    makes the screen array too big but the individual cell arrays for the
    lines too small. Creating lines longer than the number of rows will
    clobber the memory after the end of the cell array.
    The fix is simple, call tty3270_alloc_screen with the correct argument
    order.
    Signed-off-by: 's avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    Signed-off-by: 's avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    2202b364
Name
Last commit
Last update
..
block Loading commit data...
char Loading commit data...
cio Loading commit data...
crypto Loading commit data...
kvm Loading commit data...
net Loading commit data...
scsi Loading commit data...
Makefile Loading commit data...