From: Alan Cox Date: Mon, 6 Apr 2009 16:33:55 +0000 (+0100) Subject: isicom: isicom kref leak fix X-Git-Tag: 2.1b_release~13226 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbb8e6bf10c5c3c9c70a94aa26cb27f95f10dee5;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git 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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/isicom.c b/drivers/char/isicom.c index 24aa6e8..a59eac5 100644 --- a/drivers/char/isicom.c +++ b/drivers/char/isicom.c @@ -925,6 +925,7 @@ static void isicom_shutdown_port(struct isi_port *port) if (!card->count) isicom_shutdown_board(card); } + tty_kref_put(tty); } static void isicom_flush_buffer(struct tty_struct *tty)