diff options
| author | Oliver Neukum <[email protected]> | 2007-12-20 12:23:03 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2008-02-01 14:34:58 -0800 |
| commit | e58679805dab3fb75df88141d9d869904a93337f (patch) | |
| tree | d14ba8ad0f78b026d452b5f05bc6d54aff4deb87 /scripts/patch-kernel | |
| parent | e7b13ec9235b9fded90f826ceeb8c34548631351 (diff) | |
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) [email protected] 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 <[email protected]>
Acked-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions