On Sun, 21 Mar 2004, jjluza wrote:
> Hi,
>
> I use kernel 2.6.4 on a nforce2 motherboard (ohci).
> I use an adsl alcatel speedtch modem and I load the firmware in it thanks to
> modem_run from speedtouch.sf.net.
> I use hotplug and udev with a speedtch script in /etc/hotplug/usb/, so when my
> system starts, it's connected to internet.
> But I always get this kernel oops :
>
> drivers/usb/core/usb.c: registered new driver speedtch
> Unable to handle kernel NULL pointer dereference at virtual address 00000004
> printing eip:
> c0238962
> *pde = 00000000
> Oops: 0000 [#1]
> PREEMPT
> CPU: 0
> EIP: 0060:[<c0238962>] Tainted: P
> EFLAGS: 00010246
> EIP is at findintfif+0x22/0x70
Try the patch below and tell us if it prevents the oops.
Alan Stern
--- 2.6/drivers/usb/core/devio.c.orig Sun Mar 21 10:02:43 2004
+++ 2.6/drivers/usb/core/devio.c Sun Mar 21 10:04:47 2004
@@ -414,6 +414,8 @@
if (ep & ~(USB_DIR_IN|0xf))
return -EINVAL;
+ if (!dev->actconfig)
+ return -ENOENT;
for (i = 0; i < dev->actconfig->desc.bNumInterfaces; i++) {
iface = dev->actconfig->interface[i];
for (j = 0; j < iface->num_altsetting; j++) {
@@ -434,6 +436,8 @@
if (ifn & ~0xff)
return -EINVAL;
+ if (!dev->actconfig)
+ return -ENOENT;
for (i = 0; i < dev->actconfig->desc.bNumInterfaces; i++) {
if (dev->actconfig->interface[i]->
altsetting[0].desc.bInterfaceNumber == ifn)
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel