]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: g_printer: fix handling zero-length packet
authorSangSu Park <sangsu@gmail.com>
Mon, 22 Sep 2008 22:41:15 +0000 (15:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Oct 2008 21:40:56 +0000 (14:40 -0700)
commit8296345a35551414b07419f4c9223734c1fc5437
treeca1607143d3ef663f77b9520de9d992df6f0f58e
parent0b14c3881d4b91272b779f4037e263d392de058f
USB: g_printer: fix handling zero-length packet

g_printer doesn't have to check whether the data size is a multiple of
MaxPacketSize, because device controller driver already make that check.

Signed-off-by: SangSu Park<sangsu@gmail.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: David Brownell <david-b@pacbell.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/printer.c