[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>
This commit is contained in:
parent
ba47f66bd9
commit
2f8ad9a1b9
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue