lkml.org 
[lkml]   [2008]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 03/18] lirc driver for 1st-gen Media Center Ed. USB IR transceivers
Date
On Tuesday 09 September 2008 21:21:40 Jonathan Corbet wrote:
> > +error:
> > +     mceusb_delete(dev);
> > +     dev = NULL;
> > +     dprintk("%s: retval = %x", __func__, retval);
> > +     up(&minor_table_mutex);
> > +     return retval;
> > +}
>
> This will leak the memory allocated for dev.  It also leaves the
> entry in minor_table pointing to a nonfunctional device.

Argh, I replied too quickly.

kfree(dev) and minor_table cleanup are in mceusb_delete()

Janne
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2008-09-10 02:07    [W:0.518 / U:28.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site