Commit bbb8e6bf10c5c3c9c70a94aa26cb27f95f10dee5

Authored by Alan Cox
Committed by Linus Torvalds
1 parent 8d5a05da82

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/char/isicom.c
... ... @@ -925,6 +925,7 @@
925 925 if (!card->count)
926 926 isicom_shutdown_board(card);
927 927 }
  928 + tty_kref_put(tty);
928 929 }
929 930  
930 931 static void isicom_flush_buffer(struct tty_struct *tty)