]> err.no Git - linux-2.6/commit
[PATCH] USB: kzalloc() conversion in drivers/usb/gadget
authorEric Sesterhenn <snakebyte@gmx.de>
Mon, 27 Feb 2006 21:34:10 +0000 (13:34 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 22:49:59 +0000 (14:49 -0800)
commit7039f4224d4e40b06308d5c1a97427af1a142459
tree4529171195b1008e8615bb4b39a129ddda463b16
parent80b6ca48321974a6566a1c9048ba34f60420bca6
[PATCH] USB: kzalloc() conversion in drivers/usb/gadget

this patch converts drivers/usb to kzalloc usage.
Compile tested with allyes config.

I think there was a bug in drivers/usb/gadget/inode.c because
it used sizeof(*data) for the kmalloc() and sizeof(data) for
the memset(), since sizeof(data) just returns the size for a pointer.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/dummy_hcd.c
drivers/usb/gadget/goku_udc.c
drivers/usb/gadget/inode.c
drivers/usb/gadget/lh7a40x_udc.c
drivers/usb/gadget/net2280.c
drivers/usb/gadget/omap_udc.c
drivers/usb/gadget/pxa2xx_udc.c
drivers/usb/gadget/serial.c
drivers/usb/gadget/zero.c