Bug 9593 - NULL pointer dereference on drivers/usb/gadget/serial.c
Summary: NULL pointer dereference on drivers/usb/gadget/serial.c
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Greg Kroah-Hartman
Depends on:
Blocks: USB
  Show dependency tree
Reported: 2007-12-17 21:58 UTC by Marcio Buss
Modified: 2008-09-22 10:38 UTC (History)
0 users

See Also:
Kernel Version: 2.6.23
Tree: Mainline
Regression: ---


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",
		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)

Note You need to log in before you can comment on or make changes to this bug.