summaryrefslogtreecommitdiff
path: root/drivers/tty/tty_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r--drivers/tty/tty_io.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 0b9a19afc3e7..a5d0457e0e28 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -3344,8 +3344,7 @@ struct tty_driver *__tty_alloc_driver(unsigned int lines, struct module *owner,
if (!(flags & TTY_DRIVER_DEVPTS_MEM)) {
driver->ttys = kzalloc_objs(*driver->ttys, lines);
- driver->termios = kzalloc_objs(*driver->termios, lines,
- GFP_KERNEL);
+ driver->termios = kzalloc_objs(*driver->termios, lines);
if (!driver->ttys || !driver->termios) {
err = -ENOMEM;
goto err_free_all;