]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix compile error in usb-serial.c
authorAdrian Bunk <bunk@fs.tum.de>
Mon, 18 Nov 2002 10:34:46 +0000 (02:34 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 18 Nov 2002 10:34:46 +0000 (02:34 -0800)
drivers/usb/serial/usb-serial.c in 2.5.48 fails to compile with the
following error:

drivers/usb/serial/usb-serial.c:842: dereferencing pointer to incompletetype

Is the following patch correct?

drivers/usb/serial/usb-serial.c

index 75510b41e8abe286beee7e257994b3048c3f88e0..9cd00175a812ef40ace5b6d7f3a21f22ca87e0d4 100644 (file)
@@ -839,7 +839,7 @@ static int serial_read_proc (char *page, char **start, off_t off, int count, int
 
                length += sprintf (page+length, "%d:", i);
                if (serial->type->owner)
-                       length += sprintf (page+length, " module:%s", serial->type->owner->name);
+                       length += sprintf (page+length, " module:%s", module_name(serial->type->owner));
                length += sprintf (page+length, " name:\"%s\"", serial->type->name);
                length += sprintf (page+length, " vendor:%04x product:%04x", serial->vendor, serial->product);
                length += sprintf (page+length, " num_ports:%d", serial->num_ports);