hd44780: Add keystring array boundary check. Have all subdrivers close

previously opened devices.
This commit is contained in:
mmdolze committed 2010-01-10 17:07:48 +00:00
1 parent 97a2b20b0d
commit 6fba5cef68
5 files changed
+43 -5

No files matched your search

+2 -1
View File
@@ -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 */