Commit bc485587 authored by Linus Torvalds's avatar Linus Torvalds

Make sure that unallocated consoles don't cause us to oops

in VT_RESIZEX handling.
parent 2d7550c8
......@@ -872,6 +872,8 @@ int vt_ioctl(struct tty_struct *tty, struct file * file,
return -EINVAL;
for (i = 0; i < MAX_NR_CONSOLES; i++) {
if (!vc_cons[i].d)
continue;
if (vlin)
vc_cons[i].d->vc_scan_lines = vlin;
if (clin)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment