Merge tag 'for-linus' of https://github.com/openrisc/linux
[linux-block.git] / drivers / tty / tty_io.c
index 7e8b3bd59c7b3c72de5f17b412a7e9b4c042282b..8fec1d8648f52eae8c888b234d7b5ac7457e7890 100644 (file)
@@ -3088,7 +3088,7 @@ struct tty_struct *alloc_tty_struct(struct tty_driver *driver, int idx)
 {
        struct tty_struct *tty;
 
-       tty = kzalloc(sizeof(*tty), GFP_KERNEL);
+       tty = kzalloc(sizeof(*tty), GFP_KERNEL_ACCOUNT);
        if (!tty)
                return NULL;