Another smd_tty patch closer to LeTama's since I still managed to crash things with the last one.
This commit is contained in:
parent
28ac03478b
commit
51e39b55ac
@ -47,6 +47,7 @@ static void smd_tty_work_func(struct work_struct *work)
|
||||
{
|
||||
unsigned char *ptr;
|
||||
int avail;
|
||||
int failcnt = 0;
|
||||
|
||||
struct smd_tty_info *info = container_of(work,
|
||||
struct smd_tty_info,
|
||||
@ -90,10 +91,11 @@ static void smd_tty_work_func(struct work_struct *work)
|
||||
tty->low_latency = 1;
|
||||
tty_flip_buffer_push(tty);
|
||||
} else {
|
||||
failcnt++;
|
||||
printk(KERN_ERR "smd_tty_work_func: tty_prepare_flip_string fail\n");
|
||||
tty->low_latency = 0;
|
||||
tty_flip_buffer_push(tty);
|
||||
break;
|
||||
if(failcnt > 2) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user