Skip to content

Commit

Permalink
[PATCH] USB: rmmod pl2303 after -28
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pete Zaitcev authored and gregkh committed Jun 21, 2006
1 parent ba47f66 commit 2f8ad9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/usb/serial/usb-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2f8ad9a

Please sign in to comment.