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:
parent
8d5a05da82
commit
bbb8e6bf10
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user