]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] USB: rmmod pl2303 after -28
authorPete Zaitcev <zaitcev@redhat.com>
Wed, 24 May 2006 18:04:04 +0000 (11:04 -0700)
committerGreg 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

index 7a1cc1b04979c3ebbb38bdeab1d6fd4c3e696cbf..cbca3402d6cd2cac1f323f693b7594a1a9706da1 100644 (file)
@@ -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 */