Re: [patch] tty: handle NULL parameters in free_tty_struct()

2012-07-20 Thread Jiri Slaby
On 07/20/2012 11:48 AM, Alan Cox wrote: > On Fri, 20 Jul 2012 10:06:34 +0300 > Dan Carpenter wrote: > >> We sometimes pass NULL pointers to free_tty_struct(). One example where >> it can happen is in the error handling code in pty_common_install(). >> >> Signed-off-by: Dan Carpenter > >

Re: [patch] tty: handle NULL parameters in free_tty_struct()

2012-07-20 Thread Alan Cox
On Fri, 20 Jul 2012 10:06:34 +0300 Dan Carpenter wrote: > We sometimes pass NULL pointers to free_tty_struct(). One example where > it can happen is in the error handling code in pty_common_install(). > > Signed-off-by: Dan Carpenter Acked-by: Alan Cox We probably shouldn't be passing

[patch] tty: handle NULL parameters in free_tty_struct()

2012-07-20 Thread Dan Carpenter
We sometimes pass NULL pointers to free_tty_struct(). One example where it can happen is in the error handling code in pty_common_install(). Signed-off-by: Dan Carpenter diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index ca7c25d..e49b839 100644 --- a/drivers/tty/tty_io.c +++

[patch] tty: handle NULL parameters in free_tty_struct()

2012-07-20 Thread Dan Carpenter
We sometimes pass NULL pointers to free_tty_struct(). One example where it can happen is in the error handling code in pty_common_install(). Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index ca7c25d..e49b839 100644 ---

Re: [patch] tty: handle NULL parameters in free_tty_struct()

2012-07-20 Thread Alan Cox
On Fri, 20 Jul 2012 10:06:34 +0300 Dan Carpenter dan.carpen...@oracle.com wrote: We sometimes pass NULL pointers to free_tty_struct(). One example where it can happen is in the error handling code in pty_common_install(). Signed-off-by: Dan Carpenter dan.carpen...@oracle.com Acked-by: Alan

Re: [patch] tty: handle NULL parameters in free_tty_struct()

2012-07-20 Thread Jiri Slaby
On 07/20/2012 11:48 AM, Alan Cox wrote: On Fri, 20 Jul 2012 10:06:34 +0300 Dan Carpenter dan.carpen...@oracle.com wrote: We sometimes pass NULL pointers to free_tty_struct(). One example where it can happen is in the error handling code in pty_common_install(). Signed-off-by: Dan