On Sat, Nov 26, 2005 at 06:05:00PM +0100, Oliver Neukum wrote:
> Am Samstag, 26. November 2005 16:20 schrieb Ville Syrjälä:
> > +               ar2->buf[i] = usb_buffer_alloc(udev, 4, GFP_KERNEL, 
> > &ar2->buf_dma[i]);
> > +               if (!ar2->buf[i])
> > +                       return -ENOMEM;
> > +
> > +               ar2->urb[i] = usb_alloc_urb(0, GFP_KERNEL);
> > +               if (!ar2->urb[i])
> > +                       return -ENOMEM;
> 
> That is a memory leak in the error case.

ati_remote2_delete() is called from ati_remote2_probe() to clean it up.

-- 
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to