Fixed segfault if creation of TTY devices fails.
--- a/examples/tty/serial.c Mon Jan 25 17:42:07 2010 +0100
+++ b/examples/tty/serial.c Mon Jan 25 18:31:27 2010 +0100
@@ -699,7 +699,7 @@
return 0;
out_ports:
- for (i--; i <= 0; i--) {
+ for (i--; i >= 0; i--) {
el60xx_port_clear(el6002->port + i);
}
out_return: