Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f8ad9a1 authored by Pete Zaitcev's avatar Pete Zaitcev Committed by Greg Kroah-Hartman
Browse files

[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: default avatarPete Zaitcev <zaitcev@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ba47f66b
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -162,6 +162,8 @@ static void destroy_serial(struct kref *kref)
		}
		}
	}
	}


	flush_scheduled_work();		/* port->work */

	usb_put_dev(serial->dev);
	usb_put_dev(serial->dev);


	/* free up any memory that we allocated */
	/* free up any memory that we allocated */