isicom: isicom kref leak fix

The isicom driver leaks a kref on the shutdown path. Drop the additional
kref we took

Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Alan Cox 2009-04-06 17:33:55 +01:00 committed by Linus Torvalds
parent 8d5a05da82
commit bbb8e6bf10

View File

@ -925,6 +925,7 @@ static void isicom_shutdown_port(struct isi_port *port)
if (!card->count) if (!card->count)
isicom_shutdown_board(card); isicom_shutdown_board(card);
} }
tty_kref_put(tty);
} }
static void isicom_flush_buffer(struct tty_struct *tty) static void isicom_flush_buffer(struct tty_struct *tty)