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
- [PATCH] tty_io: Fix a missing-check bug in drivers/tty/tty_io... Gen Zhang
- Re: [PATCH] tty_io: Fix a missing-check bug in drivers/t... Jiri Slaby
- Re: [PATCH] tty_io: Fix a missing-check bug in drive... Gen Zhang
- Re: [PATCH] tty_io: Fix a missing-check bug in d... Jiri Slaby
- Re: [PATCH] tty_io: Fix a missing-check bug ... Johan Hovold
- Re: [PATCH] tty_io: Fix a missing-check... Jiri Slaby
- Re: [PATCH] tty_io: Fix a missing-check... Gen Zhang
- Re: [PATCH] tty_io: Fix a missing-c... Johan Hovold
- Re: [PATCH] tty_io: Fix a missi... Gen Zhang
- Re: [PATCH] tty_io: Fix a missing-check bug ... Gen Zhang