Re: [PATCH] Fix a memory leak in em28xx_usb_probe()

2007-08-15 Thread Markus Rechberger
Hi Jesper, On 8/9/07, Jesper Juhl <[EMAIL PROTECTED]> wrote: > EHLO, > > 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

Re: [PATCH] Fix a memory leak in em28xx_usb_probe()

2007-08-15 Thread Markus Rechberger
Hi Jesper, On 8/9/07, Jesper Juhl [EMAIL PROTECTED] wrote: EHLO, 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

[PATCH] Fix a memory leak in em28xx_usb_probe()

2007-08-09 Thread Jesper Juhl
EHLO, 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

[PATCH] Fix a memory leak in em28xx_usb_probe()

2007-08-09 Thread Jesper Juhl
EHLO, 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',