Bug 9593

Summary: NULL pointer dereference on drivers/usb/gadget/serial.c
Product: Drivers Reporter: Marcio Buss (marciobuss)
Component: USBAssignee: Greg Kroah-Hartman (greg)
Status: REJECTED INVALID    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.23 Subsystem:
Regression: --- Bisected commit-id:
Bug Depends on:    
Bug Blocks: 5089    

Description Marcio Buss 2007-12-17 21:58:23 UTC
The following code fragment at line 1213 tests for "port == NULL" but
tries to print "port->port_num."

	if (port == NULL) {
		printk(KERN_ERR "gs_recv_packet: port=%d, NULL port pointer\n",
			port->port_num);
		return -EIO;
	}
Comment 1 Marcio Buss 2007-12-17 22:08:45 UTC
Oops, a typo mistake here: the correct path to "serial.c" is 
drivers/usb/gadget/serial.c and not i2c.
Comment 2 Alan 2008-09-22 10:38:09 UTC
Closing as obsolete (code has been rewritten)