projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba47f66
)
[PATCH] USB: rmmod pl2303 after -28
author
Pete Zaitcev
<zaitcev@redhat.com>
Wed, 24 May 2006 18:04:04 +0000
(11:04 -0700)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 21 Jun 2006 22:04:14 +0000
(15:04 -0700)
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>
drivers/usb/serial/usb-serial.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/serial/usb-serial.c
b/drivers/usb/serial/usb-serial.c
index 7a1cc1b04979c3ebbb38bdeab1d6fd4c3e696cbf..cbca3402d6cd2cac1f323f693b7594a1a9706da1 100644
(file)
--- 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)
}
}
+ flush_scheduled_work(); /* port->work */
+
usb_put_dev(serial->dev);
/* free up any memory that we allocated */