.. | .. |
---|
32 | 32 | #include <linux/tty.h> |
---|
33 | 33 | #include <linux/tty_flip.h> |
---|
34 | 34 | #include <linux/mm.h> |
---|
| 35 | +#include <linux/nospec.h> |
---|
35 | 36 | #include <linux/string.h> |
---|
36 | 37 | #include <linux/init.h> |
---|
37 | 38 | #include <linux/slab.h> |
---|
.. | .. |
---|
310 | 311 | static void put_queue(struct vc_data *vc, int ch) |
---|
311 | 312 | { |
---|
312 | 313 | tty_insert_flip_char(&vc->port, ch, 0); |
---|
313 | | - tty_schedule_flip(&vc->port); |
---|
| 314 | + tty_flip_buffer_push(&vc->port); |
---|
314 | 315 | } |
---|
315 | 316 | |
---|
316 | 317 | static void puts_queue(struct vc_data *vc, char *cp) |
---|
.. | .. |
---|
319 | 320 | tty_insert_flip_char(&vc->port, *cp, 0); |
---|
320 | 321 | cp++; |
---|
321 | 322 | } |
---|
322 | | - tty_schedule_flip(&vc->port); |
---|
| 323 | + tty_flip_buffer_push(&vc->port); |
---|
323 | 324 | } |
---|
324 | 325 | |
---|
325 | 326 | static void applkey(struct vc_data *vc, int key, char mode) |
---|
.. | .. |
---|
564 | 565 | static void fn_send_intr(struct vc_data *vc) |
---|
565 | 566 | { |
---|
566 | 567 | tty_insert_flip_char(&vc->port, 0, TTY_BREAK); |
---|
567 | | - tty_schedule_flip(&vc->port); |
---|
| 568 | + tty_flip_buffer_push(&vc->port); |
---|
568 | 569 | } |
---|
569 | 570 | |
---|
570 | 571 | static void fn_scroll_forw(struct vc_data *vc) |
---|
.. | .. |
---|
1241 | 1242 | } |
---|
1242 | 1243 | } |
---|
1243 | 1244 | |
---|
1244 | | -DECLARE_TASKLET_DISABLED(keyboard_tasklet, kbd_bh, 0); |
---|
| 1245 | +DECLARE_TASKLET_DISABLED_OLD(keyboard_tasklet, kbd_bh); |
---|
1245 | 1246 | |
---|
1246 | 1247 | #if defined(CONFIG_X86) || defined(CONFIG_IA64) || defined(CONFIG_ALPHA) ||\ |
---|
1247 | 1248 | defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) ||\ |
---|
.. | .. |
---|
1461 | 1462 | KBD_UNICODE, ¶m); |
---|
1462 | 1463 | if (rc != NOTIFY_STOP) |
---|
1463 | 1464 | if (down && !raw_mode) |
---|
1464 | | - to_utf8(vc, keysym); |
---|
| 1465 | + k_unicode(vc, keysym, !down); |
---|
1465 | 1466 | return; |
---|
1466 | 1467 | } |
---|
1467 | 1468 | |
---|
.. | .. |
---|
2022 | 2023 | goto reterr; |
---|
2023 | 2024 | } |
---|
2024 | 2025 | kbs->kb_string[sizeof(kbs->kb_string)-1] = '\0'; |
---|
2025 | | - i = kbs->kb_func; |
---|
| 2026 | + i = array_index_nospec(kbs->kb_func, MAX_NR_FUNC); |
---|
2026 | 2027 | |
---|
2027 | 2028 | switch (cmd) { |
---|
2028 | 2029 | case KDGKBSENT: { |
---|