Re: OOPS with 2.6.20 and 2.6.21-rc2 (mos7720)

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Novell
Message-ID <[email protected]>
Am Dienstag, 6. März 2007 16:31 schrieb Dirk Schoebel:
> new trace
> (if i should activate some kernel debugging optioons just mention it)

OK, here's an alternative debugging patch.

	Regards
		Oliver

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
mosdbg2.patch (text/x-diff, 858 B)
--- linux-2.6.21-rc3/drivers/usb/serial/mos7720.c.alt	2007-03-07 15:53:00.000000000 +0100
+++ linux-2.6.21-rc3/drivers/usb/serial/mos7720.c	2007-03-07 15:56:16.000000000 +0100
@@ -335,7 +335,9 @@
 	char data;
 	int j;
 
+	BUG_ON(port == NULL);
 	serial = port->serial;
+	BUG_ON(serial == NULL);
 
 	mos7720_port = usb_get_serial_port_data(port);
 	if (mos7720_port == NULL)
@@ -460,6 +462,7 @@
 		dbg("To Submit URB !!!");
 
 		/* set up our interrupt urb */
+		BUG_ON(port0->interrupt_in_urb == NULL);
 		usb_fill_int_urb(port0->interrupt_in_urb, serial->dev,
 				 usb_rcvintpipe(serial->dev,
 				 		port->interrupt_in_endpointAddress),
@@ -479,6 +482,7 @@
 	}
 
 	/* set up our bulk in urb */
+	BUG_ON(port0->read_urb == NULL);
 	usb_fill_bulk_urb(port->read_urb, serial->dev,
 			  usb_rcvbulkpipe(serial->dev,
 			  		  port->bulk_in_endpointAddress),
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.