Files
linux/drivers
Jesper Juhl 1207cf84f2 USB: Fix a memory leak in em28xx_usb_probe()
If, in em28xx_usb_probe() the memory allocation
	dev->alt_max_pkt_size = kmalloc(32*
						dev->num_alt,GFP_KERNEL);
fails, then we'll bail out and return -ENOMEM.
The problem is that in that case we don't free the storage allocated
to 'dev', thus causing a memory leak.

This patch fixes the leak by freeing 'dev' before we return -ENOMEM.
This fixes Coverity bug #647.


Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-08-22 14:27:47 -07:00
..
2007-07-31 15:39:39 -07:00
…
2007-07-31 15:39:39 -07:00
2007-07-21 18:37:12 -07:00
…
…
…
2007-07-16 09:05:42 -07:00
2007-08-14 18:37:15 +02:00
2007-08-21 10:14:28 -07:00
…
2007-08-11 22:34:48 +02:00
2007-08-11 15:47:41 -07:00
2007-07-20 14:25:51 +10:00
2007-07-31 15:39:37 -07:00
2007-07-29 16:53:59 -07:00
2007-06-28 19:19:20 +10:00
2007-07-31 15:39:44 -07:00
2007-08-11 15:47:42 -07:00
2007-07-18 08:38:22 -07:00
2007-07-18 15:57:16 -07:00
2007-07-26 11:11:57 -07:00
2007-07-26 11:35:17 -07:00
2007-07-20 13:39:59 +10:00
2007-07-29 18:58:39 +00:00