Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dd9a451a authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

viocons: BKL locking



For some weird reason I can't ascertain (translation "I think its
broken") the viocons driver calls directly into the n_tty ldisc code even
if another ldisc is in use. It'll probably break if you do that but I'm
just fixing the locking and adding a comment that its horked.

Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1f8cabb7
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -704,8 +704,11 @@ static int viotty_ioctl(struct tty_struct *tty, struct file *file,
	case KDSKBLED:
		return 0;
	}

	return n_tty_ioctl(tty, file, cmd, arg);
	/* FIXME: WTF is this being called for ??? */
	lock_kernel();
	ret =  n_tty_ioctl(tty, file, cmd, arg);
	unlock_kernel();
	return ret;
}

/*