coco3: ttydw.c: fix bad port to minor translation on close.
authorBrett Gordon <beretta42@gmail.com>
Tue, 8 Dec 2015 22:56:22 +0000 (17:56 -0500)
committerBrett Gordon <beretta42@gmail.com>
Thu, 10 Dec 2015 21:35:14 +0000 (16:35 -0500)
Kernel/platform-coco3/ttydw.c

index 99d7a07..b05d80e 100644 (file)
@@ -232,10 +232,10 @@ void dw_vpoll( ){
                }
                /* VSER Channel closed? */
                if( buf[0] == 16 ){
-                       int minor=dw_minor( buf[1]-1 );
-                       struct dw_in *p=dw_gettab( buf[1]-1 );
+                       int minor=dw_minor( buf[1] );
+                       struct dw_in *p=dw_gettab( buf[1] );
                        dw_vclose( minor );
-                       tty_carrier_drop( minor+1 );
+                       tty_carrier_drop( minor);
                        continue;
                }
                /* VSER channel multiple data */