Files
linux/drivers
Alan Stern 49631ca7f3 USB: gadgetfs AIO tweaks
This patch (as837) fixes several mistakes in the AIO interface of the
gadgetfs driver:

	The ki_retry method is not supposed to do a put on the kiocb.
	The extra call to aio_put_req() causes memory corruption.
	(Note: This call was removed before, by patch as691, and then
	mysteriously re-introduced later.)

	Even if a read transfer is cancelled, we can and should send
	to the user all the data that did manage to get transferred.

	Testing for AIO cancellation in the I/O completion handler
	is both racy and (now) unnecessary.  aio_complete() does its
	own checking, in a safe manner.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-02-07 15:44:39 -08:00
..
2007-01-26 13:50:58 -08:00
2007-01-23 11:09:49 -08:00
2006-12-07 08:39:24 -08:00
2006-10-11 11:14:25 -07:00
2007-01-06 09:32:49 -06:00
2007-02-02 11:52:05 -05:00
2006-12-11 13:49:53 +11:00
2006-10-03 22:31:37 +02:00
2007-02-05 21:18:53 +01:00
2006-10-17 08:18:42 -07:00
2006-12-08 08:28:57 -08:00
2007-02-07 15:44:39 -08:00
2006-12-13 09:05:48 -08:00
2006-12-08 08:28:50 -08:00
2006-12-10 09:57:22 -08:00
2006-12-10 09:57:22 -08:00