From: Jesper Juhl Date: Fri, 28 Mar 2008 21:50:27 +0000 (-0700) Subject: USB: mem leak fixes for AMD 5536 UDC high/full speed USB device controller driver X-Git-Tag: v2.6.26-rc1~1061^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73d79aaba9ee21aaa1a6676f568ef7b3bdf993ea;p=pandora-kernel.git 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 Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed