Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113455
b: refs/heads/master
c: bf7a06b
h: refs/heads/master
i:
  113453: 81aa09a
  113451: 212ba91
  113447: 90ef345
  113439: 078fed6
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Oct 13, 2008
1 parent 8dd66dc commit 4862521
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15582d36a15978355d2168eaa018a3736db7281f
refs/heads/master: bf7a06bcce205705ea5c7675cbb8ea9239ea30a0
18 changes: 0 additions & 18 deletions trunk/drivers/char/vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -2136,27 +2136,9 @@ static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int co
release_console_sem();
return 0;
}
release_console_sem();

orig_buf = buf;
orig_count = count;

/* At this point 'buf' is guaranteed to be a kernel buffer
* and therefore no access to userspace (and therefore sleeping)
* will be needed. The con_buf_mtx serializes all tty based
* console rendering and vcs write/read operations. We hold
* the console spinlock during the entire write.
*/

acquire_console_sem();

vc = tty->driver_data;
if (vc == NULL) {
printk(KERN_ERR "vt: argh, driver_data _became_ NULL !\n");
release_console_sem();
goto out;
}

himask = vc->vc_hi_font_mask;
charmask = himask ? 0x1ff : 0xff;

Expand Down

0 comments on commit 4862521

Please sign in to comment.