From 325979c74cf1521a7e73dececa91e8462dc3a21c Mon Sep 17 00:00:00 2001 From: Jon Benson Date: Sat, 4 Dec 2010 14:34:10 +1100 Subject: [PATCH] Another attempt at patching smd_tty to prevent out of memory crashes. --- arch/arm/mach-msm/smd_tty.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-msm/smd_tty.c b/arch/arm/mach-msm/smd_tty.c index 1d1802a3..f9221527 100644 --- a/arch/arm/mach-msm/smd_tty.c +++ b/arch/arm/mach-msm/smd_tty.c @@ -89,8 +89,12 @@ static void smd_tty_work_func(struct work_struct *work) wake_lock_timeout(&info->wake_lock, HZ / 2); tty->low_latency = 1; tty_flip_buffer_push(tty); - } else + } else { printk(KERN_ERR "smd_tty_work_func: tty_prepare_flip_string fail\n"); + tty->low_latency = 0; + tty_flip_buffer_push(tty); + break; + } } mutex_unlock(&smd_tty_lock);