Oliver Neukum e58679805d USB: fix NULL pointer dereference on drivers/usb/serial/whiteheat.c
Am Sonntag, 16. Dezember 2007 05:23:47 schrieb Andrew Morton:
> On Sat, 15 Dec 2007 07:08:52 -0800 (PST) bugme-daemon@bugzilla.kernel.org wrote:
> 
> > http://bugzilla.kernel.org/show_bug.cgi?id=9573
 
> > There's a null pointer dereference on drivers/usb/serial/whiteheat.c as
> > follows:
> > 
> > (1) line 613:  the test "if (port->tty)" implies that null is a legal value
> >     for "port->tty" at that point
> > 
> > (2) neither firm_open nor firm_purge initialize "port->tty"

drivers/usb/serial/usb-serial::serial_open() sets port->tty
The check for NULL is bogus. This patch removes the check.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-02-01 14:34:58 -08:00
..
2007-10-12 14:55:20 -07:00
2007-10-25 12:18:40 -07:00
2008-02-01 14:34:43 -08:00
2007-10-25 12:18:41 -07:00
2006-12-01 14:23:27 -08:00
2007-10-12 14:55:32 -07:00
2008-02-01 14:34:57 -08:00
2007-10-25 12:18:41 -07:00
2008-02-01 14:34:47 -08:00
2008-02-01 14:34:47 -08:00
2008-02-01 14:34:47 -08:00
2008-02-01 14:34:42 -08:00
2008-02-01 14:34:47 -08:00
2008-02-01 14:34:57 -08:00
2007-10-12 14:55:32 -07:00
2007-08-22 14:27:43 -07:00