android_kernel_motorola_sm6225/drivers/usb/gadget
Jesper Juhl 73d79aaba9 USB: mem leak fixes for AMD 5536 UDC high/full speed USB device controller driver
In drivers/usb/gadget/amd5536udc.c::udc_pci_probe(), sizeof(struct udc)
storage is allocated for 'dev'.

There are many exit points from the function where 'dev' is not free'd but has
also not yet been used for anything.  The following patch free's 'dev' at the
return points where it has not yet been used.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-04-24 21:16:47 -07:00
..
amd5536udc.c USB: mem leak fixes for AMD 5536 UDC high/full speed USB device controller driver 2008-04-24 21:16:47 -07:00
amd5536udc.h USB: amd5536 UDC driver (in GEODE southbridge) 2007-07-19 17:46:05 -07:00
at91_udc.c usb gadget: fix platform driver hotplug/coldplug 2008-04-11 08:06:43 -07:00
at91_udc.h USB: at91_udc uses generic GPIO calls; minor cleanup 2008-02-01 14:35:01 -08:00
atmel_usba_udc.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/usba-2.6.26 into base 2008-04-19 20:38:41 -04:00
atmel_usba_udc.h atmel_usba_udc: Add support for AT91CAP9 UDPHS 2008-04-06 17:25:06 -04:00
config.c USB: move <linux/usb_gadget.h> to <linux/usb/gadget.h> 2007-10-12 14:55:31 -07:00
dummy_hcd.c USB: remove dev->power.power_state 2008-04-24 21:16:41 -07:00
epautoconf.c USB: move <linux/usb_gadget.h> to <linux/usb/gadget.h> 2007-10-12 14:55:31 -07:00
ether.c USB: gadget: queue usb USB_CDC_GET_ENCAPSULATED_RESPONSE message 2008-02-21 15:38:52 -08:00
file_storage.c d_path: Make d_path() use a struct path 2008-02-14 21:17:09 -08:00
fsl_usb2_udc.c usb gadget: fix platform driver hotplug/coldplug 2008-04-11 08:06:43 -07:00
fsl_usb2_udc.h USB: gadget code switches to pr_err() and friends 2008-02-01 14:34:51 -08:00
gadget_chips.h USB: m66592-udc: fixes some problems 2007-07-19 17:46:05 -07:00
gmidi.c USB: gadget code switches to pr_err() and friends 2008-02-01 14:34:51 -08:00
goku_udc.c USB: usb peripheral controller driver oops avoidance 2008-02-01 14:34:52 -08:00
goku_udc.h USB: goku_udc trivial cleanups 2007-07-12 16:34:43 -07:00
inode.c USB: fix gadgetfs class request delegation 2008-03-24 22:26:14 -07:00
Kconfig USB: Remove EXPERIMENTAL tags from some USB gadget Kconfig entries. 2008-04-24 21:16:42 -07:00
lh7a40x_udc.c usb gadget: fix platform driver hotplug/coldplug 2008-04-11 08:06:43 -07:00
lh7a40x_udc.h USB: move <linux/usb_gadget.h> to <linux/usb/gadget.h> 2007-10-12 14:55:31 -07:00
m66592-udc.c usb gadget: fix platform driver hotplug/coldplug 2008-04-11 08:06:43 -07:00
m66592-udc.h USB: m66592-udc: reduce size of data structure. 2008-04-24 21:16:35 -07:00
Makefile USB: add Printer Gadget Driver 2008-02-01 14:34:49 -08:00
ndis.h [PATCH] USB: rndis updates (mostly cleanup) 2005-06-27 14:43:50 -07:00
net2280.c usb: net2280 can't have a function called show_registers() 2008-02-08 09:22:30 -08:00
net2280.h USB: net2280: don't send unwanted zero-length packets 2006-12-01 14:23:36 -08:00
omap_udc.c USB: remove dev->power.power_state 2008-04-24 21:16:41 -07:00
omap_udc.h USB: gadget code switches to pr_err() and friends 2008-02-01 14:34:51 -08:00
printer.c USB: g_printer bugfixes 2008-04-24 21:16:45 -07:00
pxa2xx_udc.c usb gadget: fix platform driver hotplug/coldplug 2008-04-11 08:06:43 -07:00
pxa2xx_udc.h USB: pxa2xx_udc: fix misuse of clock enable/disable calls 2008-03-04 14:57:44 -08:00
rndis.c USB: gadget code switches to pr_err() and friends 2008-02-01 14:34:51 -08:00
rndis.h USB gadget rndis: fix struct rndis_packet_msg_type unaligned bug 2007-04-27 13:28:40 -07:00
s3c2410_udc.c usb gadget: fix platform driver hotplug/coldplug 2008-04-11 08:06:43 -07:00
s3c2410_udc.h USB Gadget driver for Samsung s3c2410 ARM SoC 2007-07-12 16:34:30 -07:00
serial.c USB: gadget: Hangup tty on g_serial disconnect 2008-04-24 21:16:35 -07:00
usbstring.c USB: move <linux/usb_gadget.h> to <linux/usb/gadget.h> 2007-10-12 14:55:31 -07:00
zero.c USB: gadget code switches to pr_err() and friends 2008-02-01 14:34:51 -08:00