Re: [PATCH] tty_io: Fix a missing-check bug in drivers/tty/tty_io.c

From: Jiri Slaby
Date: Wed May 22 2019 - 06:35:23 EST


On 22. 05. 19, 12:29, Johan Hovold wrote:
>> Sure, but can class_find_device return NULL in this tty case here?
>
> Yes, it can and will and that's fine, not all ttys have a struct device
> (e.g. ptys).

IOW, the code needs a comment, if anything.

thanks,
--
js
suse labs