|
@@ -96,7 +96,8 @@ static int allocate_minors(struct usb_serial *serial, int num_ports)
|
|
mutex_lock(&table_lock);
|
|
mutex_lock(&table_lock);
|
|
for (i = 0; i < num_ports; ++i) {
|
|
for (i = 0; i < num_ports; ++i) {
|
|
port = serial->port[i];
|
|
port = serial->port[i];
|
|
- minor = idr_alloc(&serial_minors, port, 0, 0, GFP_KERNEL);
|
|
|
|
|
|
+ minor = idr_alloc(&serial_minors, port, 0,
|
|
|
|
+ USB_SERIAL_TTY_MINORS, GFP_KERNEL);
|
|
if (minor < 0)
|
|
if (minor < 0)
|
|
goto error;
|
|
goto error;
|
|
port->minor = minor;
|
|
port->minor = minor;
|