aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/auxdisplay/charlcd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c
index 81c22d20d9d9..60e0b772673f 100644
--- a/drivers/auxdisplay/charlcd.c
+++ b/drivers/auxdisplay/charlcd.c
@@ -538,6 +538,9 @@ static inline int handle_lcd_special_code(struct charlcd *lcd)
538 } 538 }
539 case 'x': /* gotoxy : LxXXX[yYYY]; */ 539 case 'x': /* gotoxy : LxXXX[yYYY]; */
540 case 'y': /* gotoxy : LyYYY[xXXX]; */ 540 case 'y': /* gotoxy : LyYYY[xXXX]; */
541 if (priv->esc_seq.buf[priv->esc_seq.len - 1] != ';')
542 break;
543
541 /* If the command is valid, move to the new address */ 544 /* If the command is valid, move to the new address */
542 if (parse_xy(esc, &priv->addr.x, &priv->addr.y)) 545 if (parse_xy(esc, &priv->addr.x, &priv->addr.y))
543 charlcd_gotoxy(lcd); 546 charlcd_gotoxy(lcd);