Re: [Bugme-new] [Bug 9572] New: Dereferencing NULL pointer on drivers/usb/serial/mos7720.c

Andrew Morton <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Sat, 15 Dec 2007 06:53:48 -0800 (PST) [email protected] wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=9572
> 
>            Summary: Dereferencing NULL pointer on
>                     drivers/usb/serial/mos7720.c
>            Product: Drivers
>            Version: 2.5
>      KernelVersion: 2.6.23
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: USB
>         AssignedTo: [email protected]
>         ReportedBy: [email protected]
> 
> 
> There is a NULL pointer dereference on drivers/usb/serial/mos7720.c
> The error can be tracked down as follows:
> 
> (1) line 568: there's a test "if (serial->dev)" implying that
>     null is a legal value for "serial->dev" at that point
> 
> (2) line 576: "serial" is passed in as an argument to "send_mos_cmd"
> 
> (3) line 282: "send_mos_cmd" unconditionally dereferences serial->dev
>     at expression "le16_to_cpu(serial->dev->descriptor.idProduct)
> 

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.