diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2009-04-06 12:33:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-06 17:36:33 -0400 |
commit | bbb8e6bf10c5c3c9c70a94aa26cb27f95f10dee5 (patch) | |
tree | 9b9a913e02cdf633675a7d1ee1757a29ab4a3773 /drivers/char/isicom.c | |
parent | 8d5a05da823ebd83a5147e1bfe19036a57a4d33c (diff) |
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>
Diffstat (limited to 'drivers/char/isicom.c')
-rw-r--r-- | drivers/char/isicom.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/isicom.c b/drivers/char/isicom.c index 24aa6e88e223..a59eac584d16 100644 --- a/drivers/char/isicom.c +++ b/drivers/char/isicom.c | |||
@@ -925,6 +925,7 @@ static void isicom_shutdown_port(struct isi_port *port) | |||
925 | if (!card->count) | 925 | if (!card->count) |
926 | isicom_shutdown_board(card); | 926 | isicom_shutdown_board(card); |
927 | } | 927 | } |
928 | tty_kref_put(tty); | ||
928 | } | 929 | } |
929 | 930 | ||
930 | static void isicom_flush_buffer(struct tty_struct *tty) | 931 | static void isicom_flush_buffer(struct tty_struct *tty) |