File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3004,6 +3004,7 @@ static int gsmtty_open(struct tty_struct *tty, struct file *filp)
3004
3004
{
3005
3005
struct gsm_dlci * dlci = tty -> driver_data ;
3006
3006
struct tty_port * port = & dlci -> port ;
3007
+ struct gsm_mux * gsm = dlci -> gsm ;
3007
3008
3008
3009
port -> count ++ ;
3009
3010
tty_port_tty_set (port , tty );
@@ -3013,7 +3014,8 @@ static int gsmtty_open(struct tty_struct *tty, struct file *filp)
3013
3014
a DM straight back. This is ok as that will have caused a hangup */
3014
3015
tty_port_set_initialized (port , 1 );
3015
3016
/* Start sending off SABM messages */
3016
- gsm_dlci_begin_open (dlci );
3017
+ if (gsm -> initiator )
3018
+ gsm_dlci_begin_open (dlci );
3017
3019
/* And wait for virtual carrier */
3018
3020
return tty_port_block_til_ready (port , tty , filp );
3019
3021
}
You can’t perform that action at this time.
0 commit comments