diff options
author | George Kennedy <george.kennedy@oracle.com> | 2020-07-31 19:33:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-03 12:24:27 +0300 |
commit | 1221d11e5c35db18323ade3d4b2130bde89cc9df (patch) | |
tree | 460bda945dca9045693a38c73422517fe3684b76 /drivers/ide | |
parent | c1fe757dd3d18497eaca831ed82aa20b4186affd (diff) | |
download | linux-1221d11e5c35db18323ade3d4b2130bde89cc9df.tar.xz |
vt_ioctl: change VT_RESIZEX ioctl to check for error return from vc_resize()
commit bc5269ca765057a1b762e79a1cfd267cd7bf1c46 upstream.
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: George Kennedy <george.kennedy@oracle.com>
Cc: stable <stable@vger.kernel.org>
Reported-by: syzbot+38a3699c7eaf165b97a6@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/1596213192-6635-2-git-send-email-george.kennedy@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ide')
0 files changed, 0 insertions, 0 deletions