hd44780: Add keystring array boundary check. Have all subdrivers close
previously opened devices.
This commit is contained in:
@@ -168,7 +168,8 @@ usblcd_HD44780_backlight(PrivateData *p, unsigned char state)
|
||||
void
|
||||
usblcd_HD44780_close(PrivateData *p)
|
||||
{
|
||||
close(p->fd);
|
||||
if (p->fd >= 0)
|
||||
close(p->fd);
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
||||
Reference in New Issue
Block a user