History

Merge tag 'auxdisplay-for-linus-v4.20' of https://github.com/ojeda/linux

Pull auxdisplay fix from Miguel Ojeda: "charlcd: fix x/y command parsing (Mans Rullgard)" * tag 'auxdisplay-for-linus-v4.20' of https://github.com/ojeda/linux: auxdisplay: charlcd: fix x/y command parsing

Linus Torvalds committed 7 years ago

Commit 38c0ecf2 parents 94f8200 9bc30ab1 file · +3 −0Browse files

Unified · Split

drivers/auxdisplay/charlcd.c+3−0
@@ -538,6 +538,9 @@ static inline int handle_lcd_special_code(struct charlcd *lcd) · 537 unmodified lines
538538 }
539539 case 'x': /* gotoxy : LxXXX[yYYY]; */
540540 case 'y': /* gotoxy : LyYYY[xXXX]; */
541+ if (priv->esc_seq.buf[priv->esc_seq.len - 1] != ';')
542+ break;
543+
541544 /* If the command is valid, move to the new address */
542545 if (parse_xy(esc, &priv->addr.x, &priv->addr.y))
543546 charlcd_gotoxy(lcd);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t