Commit 0f36c6e3 authored by Kai Germaschewski's avatar Kai Germaschewski

ISDN: Make isdn_tty.c compile again

The tty changes introduced some typos. These are now fixed, this
doesn't really address probably still existing races, though.
parent b0056a2e
...@@ -2095,11 +2095,10 @@ isdn_tty_init(void) ...@@ -2095,11 +2095,10 @@ isdn_tty_init(void)
#endif #endif
kfree(info->xmit_buf - 4); kfree(info->xmit_buf - 4);
} }
err_unregister_tty: tty_unregister_driver(m->tty_modem);
tty_unregister_driver(&isdn_mdm->tty_modem);
err: err:
put_tty_driver(&isdn_mdm->tty_modem); put_tty_driver(m->tty_modem);
isdn_mdm->tty_modem = NULL; m->tty_modem = NULL;
return retval; return retval;
} }
...@@ -2118,9 +2117,9 @@ isdn_tty_exit(void) ...@@ -2118,9 +2117,9 @@ isdn_tty_exit(void)
#endif #endif
kfree(info->xmit_buf - 4); kfree(info->xmit_buf - 4);
} }
tty_unregister_driver(&isdn_mdm->tty_modem); tty_unregister_driver(isdn_mdm.tty_modem);
put_tty_driver(&isdn_mdm->tty_modem); put_tty_driver(isdn_mdm.tty_modem);
isdn_mdm->tty_modem = NULL; isdn_mdm.tty_modem = NULL;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment