From: "John Stoffel" <john@stoffel.org>
To: Greg KH <greg@kroah.com>
Cc: John Stoffel <john@stoffel.org>,
linux-usb-devel@lists.sourceforge.net,
lkml - Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.21-rc3 - oops on remove of USB dongle
Date: Fri, 9 Mar 2007 19:55:19 -0500 [thread overview]
Message-ID: <17906.503.464219.762437@smtp.charter.net> (raw)
In-Reply-To: <20070309212401.GB8629@kroah.com>
[-- Attachment #1: message body text --]
[-- Type: text/plain, Size: 29 bytes --]
Duh... forgot the patches:
[-- Attachment #2: two patches for usbserial oops on 2.6.21-rc3 --]
[-- Type: application/octet-stream, Size: 1919 bytes --]
--- a/drivers/usb/serial/usb-serial.c 2007-03-05 14:43:20.000000000 +0100
+++ b/drivers/usb/serial/usb-serial.c 2007-03-05 15:18:53.000000000 +0100
@@ -99,9 +99,12 @@
continue;
*minor = i;
+ j = 0;
dbg("%s - minor base = %d", __FUNCTION__, *minor);
- for (i = *minor; (i < (*minor + num_ports)) && (i < SERIAL_TTY_MINORS); ++i)
+ for (i = *minor; (i < (*minor + num_ports)) && (i < SERIAL_TTY_MINORS); ++i) {
serial_table[i] = serial;
+ serial->port[j++]->number = i;
+ }
spin_unlock(&table_lock);
return serial;
}
@@ -848,7 +851,6 @@
port = kzalloc(sizeof(struct usb_serial_port), GFP_KERNEL);
if (!port)
goto probe_error;
- port->number = i + serial->minor;
port->serial = serial;
spin_lock_init(&port->lock);
mutex_init(&port->mutex);
@@ -1035,9 +1037,6 @@
kfree(port->interrupt_out_buffer);
}
- /* return the minor range that this device had */
- return_serial (serial);
-
/* free up any memory that we allocated */
for (i = 0; i < serial->num_port_pointers; ++i)
kfree(serial->port[i]);
--Boundary-00=_hDZ8F/6w9T6/QkM
Content-Type: text/x-diff;
charset="iso-8859-1";
name="usbserial20070227.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="usbserial20070227.patch"
--- linux-2.6.21-rc1/drivers/usb/serial/usb-serial.c.alt 2007-02-21 05:32:30.000000000 +0100
+++ linux-2.6.21-rc1/drivers/usb/serial/usb-serial.c 2007-02-26 15:32:50.000000000 +0100
@@ -826,7 +826,6 @@
num_ports = type->num_ports;
}
- serial->minor = minor;
serial->num_ports = num_ports;
serial->num_bulk_in = num_bulk_in;
serial->num_bulk_out = num_bulk_out;
@@ -980,6 +979,7 @@
dev_err(&interface->dev, "No more free serial devices\n");
goto probe_error;
}
+ serial->minor = minor;
/* register all of the individual ports with the driver core */
for (i = 0; i < num_ports; ++i) {
--Boundary-00=_hDZ8F/6w9T6/QkM--
prev parent reply other threads:[~2007-03-10 0:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-09 15:40 John Stoffel
2007-03-09 21:24 ` Greg KH
2007-03-10 0:54 ` John Stoffel
2007-03-10 0:55 ` John Stoffel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17906.503.464219.762437@smtp.charter.net \
--to=john@stoffel.org \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®