Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207899
b: refs/heads/master
c: e33ac1c
h: refs/heads/master
i:
  207897: a790122
  207895: 708031a
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent ba523a0 commit 7b5dfcb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 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: d87d9b7d19f04b16c4406d3c0feeca10090e0ada
refs/heads/master: e33ac1c10b6baaac68d18d931e120d8b96e8c5f8
4 changes: 4 additions & 0 deletions trunk/drivers/char/selection.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/selection.h>
#include <linux/tiocl.h>
#include <linux/console.h>
#include <linux/smp_lock.h>

/* Don't take this from <ctype.h>: 011-015 on the screen aren't spaces */
#define isspace(c) ((c) == ' ')
Expand Down Expand Up @@ -312,6 +313,8 @@ int paste_selection(struct tty_struct *tty)
struct tty_ldisc *ld;
DECLARE_WAITQUEUE(wait, current);

lock_kernel();

acquire_console_sem();
poke_blanked_console();
release_console_sem();
Expand All @@ -335,5 +338,6 @@ int paste_selection(struct tty_struct *tty)
__set_current_state(TASK_RUNNING);

tty_ldisc_deref(ld);
unlock_kernel();
return 0;
}
7 changes: 4 additions & 3 deletions trunk/drivers/char/vt.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,12 @@ static inline unsigned short *screenpos(struct vc_data *vc, int offset, int view
return p;
}

/* Called from the keyboard irq path.. */
static inline void scrolldelta(int lines)
{
/* FIXME */
/* scrolldelta needs some kind of consistency lock, but the BKL was
and still is not protecting versus the scheduled back end */
scrollback_delta += lines;
schedule_console_callback();
}
Expand Down Expand Up @@ -2616,8 +2620,6 @@ int tioclinux(struct tty_struct *tty, unsigned long arg)
return -EFAULT;
ret = 0;

lock_kernel();

switch (type)
{
case TIOCL_SETSEL:
Expand Down Expand Up @@ -2692,7 +2694,6 @@ int tioclinux(struct tty_struct *tty, unsigned long arg)
ret = -EINVAL;
break;
}
unlock_kernel();
return ret;
}

Expand Down

0 comments on commit 7b5dfcb

Please sign in to comment.