Re: [Bugme-new] [Bug 9594] New: Dereferencing NULL pointer on drivers/usb/gadget/ether.c
Andrew Morton <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 17 Dec 2007 22:16:23 -0800 (PST) [email protected] wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=9594 > > Summary: Dereferencing NULL pointer on drivers/usb/gadget/ether.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] > > > The potential error can be tracked down as follows: > > (1) line 1050: let the second conjunct on the "if" statment be false > meaning "dev->status_ep" is null. This means the "if" evaluates to false. > > follow thru the code until... > > (2) line 1101: usb_ep_disable(dev->status_ep) passes in a null argument, > however "use_ep_disable" cannot handle that: > > static inline int > usb_ep_disable (struct usb_ep *ep) > { > return ep->ops->disable (ep); > } > > > -- > Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email > ------- You are receiving this mail because: ------- > You are on the CC list for the bug, or are watching someone who is. ------------------------------------------------------------------------- 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