Re: [PATCH 03/18] lirc driver for 1st-gen Media Center Ed. USB IR transceivers
From: Janne Grunau
Date: Tue Sep 09 2008 - 20:04:50 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/