]> pilppa.org Git - linux-2.6-omap-h63xx.git/commit
USB: g_printer bugfixes
authorCraig W. Nadler <craig@nadler.us>
Thu, 20 Mar 2008 21:46:26 +0000 (14:46 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:45 +0000 (21:16 -0700)
commitcc901bbb2e2a4e4f96da3d70dae332882c10054b
tree18973a9558c179f7fa4998d12b233a456a6afff1
parent119fc8c9acde650fb92b44c34ea6fc84feb0f6dd
USB: g_printer bugfixes

G_PRINTER: Bug fix for blocking reads and a fix for a memory leak.

This fixes bugs in blocking IO calls. When the poll() entry point
is called receive transfers will be setup if they have not already
been. Another bug fix is that the poll() entry point now checks the
current receive buffer for data when reporting if any data had been
received. A memory leak was fixed that could have occurred when a
USB reset happened.

Signed-off-by: Craig W. Nadler <craig@nadler.us>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/printer.c