aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/char/isicom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/isicom.c b/drivers/char/isicom.c
index 1e91c302ee42..300d5bd6cd06 100644
--- a/drivers/char/isicom.c
+++ b/drivers/char/isicom.c
@@ -887,7 +887,6 @@ static void isicom_shutdown_port(struct isi_port *port)
887{ 887{
888 struct isi_board *card = port->card; 888 struct isi_board *card = port->card;
889 889
890 tty_port_free_xmit_buf(&port->port);
891 if (--card->count < 0) { 890 if (--card->count < 0) {
892 pr_dbg("isicom_shutdown_port: bad board(0x%lx) count %d.\n", 891 pr_dbg("isicom_shutdown_port: bad board(0x%lx) count %d.\n",
893 card->base, card->count); 892 card->base, card->count);
@@ -927,6 +926,7 @@ static void isicom_shutdown(struct tty_port *port)
927 outw(card->port_status, card->base + 0x02); 926 outw(card->port_status, card->base + 0x02);
928 isicom_shutdown_port(ip); 927 isicom_shutdown_port(ip);
929 spin_unlock_irqrestore(&card->card_lock, flags); 928 spin_unlock_irqrestore(&card->card_lock, flags);
929 tty_port_free_xmit_buf(port);
930} 930}
931 931
932static void isicom_close(struct tty_struct *tty, struct file *filp) 932static void isicom_close(struct tty_struct *tty, struct file *filp)