Re: [PATCH 1/1] TTY: tty_io, lookup retval fixup

From: Alan Cox
Date: Sun Feb 01 2009 - 17:40:01 EST


On Sun, 1 Feb 2009 22:39:16 +0100
Jiri Slaby <jirislaby@xxxxxxxxx> wrote:

> Make sure we fail on NULL return value possibly returned by pty
> master lookup.
>
> Convert NULL to ERR_PTR(-ENODEV), since NULL is not captured by
> IS_ERR() in __tty_open.

Better to fix any broken functions I think
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/