Re: [PATCH] tty_io: Fix a missing-check bug in drivers/tty/tty_io.c
From: Gen Zhang
Date: Wed May 22 2019 - 07:21:52 EST
On Wed, May 22, 2019 at 10:15:56AM +0200, Jiri Slaby wrote:
> Look at the top of alloc_tty_struct: there is tty_ldisc_init. If
> tty_get_device fails here, you have to call tty_ldisc_deinit. Better,
> you should add a failure-handling tail to this function and "goto" there.
Thanks for your explaination, Jiri.
I will work on it.
Thanks
Gen