Skip to content
Commit bc5269ca authored by George Kennedy's avatar George Kennedy Committed by Greg Kroah-Hartman
Browse files

vt_ioctl: change VT_RESIZEX ioctl to check for error return from vc_resize()



vc_resize() can return with an error after failure. Change VT_RESIZEX ioctl
to save struct vc_data values that are modified and restore the original
values in case of error.

Signed-off-by: default avatarGeorge Kennedy <george.kennedy@oracle.com>
Cc: stable <stable@vger.kernel.org>
Reported-by: default avatar <syzbot+38a3699c7eaf165b97a6@syzkaller.appspotmail.com>
Link: https://lore.kernel.org/r/1596213192-6635-2-git-send-email-george.kennedy@oracle.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 39b3cffb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment