2016-12-05 14:43:22 +00:00
|
|
|
diff -Nupr src.orig/drivers/tty/n_tty.c src/drivers/tty/n_tty.c
|
|
|
|
--- src.orig/drivers/tty/n_tty.c 2016-11-30 19:39:48.532737234 +0000
|
|
|
|
+++ src/drivers/tty/n_tty.c 2016-11-30 19:40:59.432737234 +0000
|
|
|
|
@@ -2269,7 +2269,7 @@ static ssize_t n_tty_read(struct tty_str
|
2014-06-25 21:46:08 +00:00
|
|
|
* lock themselves)
|
|
|
|
*/
|
|
|
|
|
|
|
|
-static ssize_t n_tty_write(struct tty_struct *tty, struct file *file,
|
|
|
|
+static ssize_t noinline kpatch_n_tty_write(struct tty_struct *tty, struct file *file,
|
|
|
|
const unsigned char *buf, size_t nr)
|
|
|
|
{
|
|
|
|
const unsigned char *b = buf;
|
2016-12-05 14:43:22 +00:00
|
|
|
@@ -2356,6 +2356,12 @@ break_out:
|
2014-06-25 21:46:08 +00:00
|
|
|
return (b - buf) ? b - buf : retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
+static ssize_t n_tty_write(struct tty_struct *tty, struct file *file,
|
|
|
|
+ const unsigned char *buf, size_t nr)
|
|
|
|
+{
|
|
|
|
+ return kpatch_n_tty_write(tty, file, buf, nr);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
/**
|
|
|
|
* n_tty_poll - poll method for N_TTY
|
|
|
|
* @tty: terminal device
|