aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/tty_io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
index 635437319778..333741770f1e 100644
--- a/drivers/char/tty_io.c
+++ b/drivers/char/tty_io.c
@@ -2065,8 +2065,9 @@ fail_no_mem:
2065 2065
2066 /* call the tty release_mem routine to clean out this slot */ 2066 /* call the tty release_mem routine to clean out this slot */
2067release_mem_out: 2067release_mem_out:
2068 printk(KERN_INFO "init_dev: ldisc open failed, " 2068 if (printk_ratelimit())
2069 "clearing slot %d\n", idx); 2069 printk(KERN_INFO "init_dev: ldisc open failed, "
2070 "clearing slot %d\n", idx);
2070 release_mem(tty, idx); 2071 release_mem(tty, idx);
2071 goto end_init; 2072 goto end_init;
2072} 2073}