diff options
author | Pete Zaitcev <zaitcev@redhat.com> | 2006-05-24 14:04:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-21 18:04:14 -0400 |
commit | 2f8ad9a1b91bc6856860a2fea8b07e0c82c0ad0a (patch) | |
tree | 8ee7eba6bfd0c955dfcd455e32e305466f53f829 /drivers/usb/serial | |
parent | ba47f66bd9fc451e9ce88f291e057b2f4910d01c (diff) |
[PATCH] USB: rmmod pl2303 after -28
Wait for the scheduled work to finish before freeing memory, prevent oops.
http://bugzilla.kernel.org/show_bug.cgi?id=6596
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 7a1cc1b04979..cbca3402d6cd 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -162,6 +162,8 @@ static void destroy_serial(struct kref *kref) | |||
162 | } | 162 | } |
163 | } | 163 | } |
164 | 164 | ||
165 | flush_scheduled_work(); /* port->work */ | ||
166 | |||
165 | usb_put_dev(serial->dev); | 167 | usb_put_dev(serial->dev); |
166 | 168 | ||
167 | /* free up any memory that we allocated */ | 169 | /* free up any memory that we allocated */ |