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-30 16:26:30 -03:00
2007-07-19 10:04:50 -07:00
2007-07-20 17:35:55 -03:00
2007-05-09 10:12:34 -03:00
2007-08-22 14:27:47 -07:00
2007-07-18 14:24:08 -03:00
2007-08-20 12:18:02 -03:00
2007-05-01 23:26:29 +02:00
2007-05-09 10:12:39 -03:00
2007-07-18 14:24:28 -03:00
2007-07-20 17:35:51 -03:00
2007-07-18 14:24:07 -03:00
2007-07-19 10:04:50 -07:00
2007-07-30 16:26:31 -03:00
2007-07-18 14:24:09 -03:00
2007-07-18 14:24:35 -03:00
2007-07-18 14:24:35 -03:00
2007-02-12 09:48:45 -08:00
2007-07-18 14:24:35 -03:00
2007-07-18 14:24:35 -03:00
2007-07-20 17:35:49 -03:00
2007-02-12 09:48:45 -08:00
2007-07-20 17:35:50 -03:00
2007-05-22 16:16:27 -03:00
2007-08-20 12:18:05 -03:00
2006-12-08 08:28:50 -08:00
2007-05-08 11:15:07 -07:00
2006-10-05 15:10:12 +01:00
2007-02-21 13:34:35 -02:00
2007-05-08 11:15:07 -07:00
2007-04-27 15:43:50 -03:00
2007-05-01 23:26:29 +02:00
2007-05-08 11:15:07 -07:00
2007-02-14 08:09:54 -08:00
2007-07-18 14:24:20 -03:00
2007-07-26 11:11:56 -07:00
2007-01-15 16:25:52 -02:00
2007-07-18 14:24:33 -03:00
2007-07-11 16:02:10 -07:00
2007-04-28 22:06:02 -04:00
2007-07-19 10:04:50 -07:00
2007-04-27 15:43:50 -03:00
2007-07-17 10:23:02 -07:00
2007-07-18 14:24:23 -03:00
2006-12-10 09:05:26 -02:00
2007-02-12 09:48:45 -08:00
2007-05-08 11:15:07 -07:00
2007-08-20 12:18:04 -03:00
2007-07-19 10:04:50 -07:00
2007-04-27 15:45:53 -03:00
2007-02-14 08:09:54 -08:00
2006-09-26 12:30:34 -03:00
2007-05-02 19:02:35 -07:00
2007-02-21 13:35:16 -02:00
2007-02-21 13:35:16 -02:00
2007-07-20 17:35:49 -03:00
2006-12-05 14:37:56 +00:00
2007-07-20 17:35:49 -03:00
2007-07-18 14:24:35 -03:00
2007-07-18 14:24:35 -03:00
2007-04-27 15:44:31 -03:00
2007-04-27 15:43:27 -03:00
2007-07-18 14:24:35 -03:00
2007-02-14 08:09:54 -08:00
2007-04-27 15:45:21 -03:00
2007-05-08 11:15:07 -07:00
2007-07-18 14:24:42 -03:00
2007-07-18 14:24:21 -03:00
2007-04-27 15:45:23 -03:00
2007-07-18 14:24:23 -03:00
2007-04-27 15:45:23 -03:00
2007-07-18 14:24:23 -03:00
2007-07-18 14:24:23 -03:00
2007-07-18 14:24:23 -03:00
2007-07-18 14:24:23 -03:00
2007-07-18 14:24:23 -03:00
2007-07-18 14:24:23 -03:00
2007-07-18 14:24:25 -03:00
2007-07-20 17:35:49 -03:00
2007-07-18 14:24:46 -03:00
2007-02-21 13:34:18 -02:00
2007-07-18 14:23:52 -03:00
2007-04-27 15:43:50 -03:00
2007-04-27 15:43:50 -03:00
2007-05-09 10:13:09 -03:00
2007-07-20 17:35:53 -03:00
2007-07-17 10:23:02 -07:00
2007-05-09 10:12:56 -03:00
2007-04-27 15:45:20 -03:00
2006-06-30 15:59:30 -03:00
2007-05-09 10:13:04 -03:00
2007-07-20 17:35:50 -03:00
2007-07-18 14:24:29 -03:00
2006-09-26 12:30:32 -03:00
2007-02-12 09:48:45 -08:00
2007-02-13 22:09:03 +01:00
2006-06-30 19:25:36 +02:00
2007-07-20 17:35:57 -03:00
2007-07-20 17:35:57 -03:00
2007-02-13 22:09:03 +01:00
2007-07-30 16:26:26 -03:00
2006-10-05 15:10:12 +01:00
2007-07-30 16:26:26 -03:00
2007-02-12 09:48:45 -08:00
2007-07-30 16:26:26 -03:00
2007-07-18 14:24:23 -03:00