Re: [PATCH] staging: comedi: avoid memleak for subdevice private

2013-07-08 Thread Ian Abbott
On 2013-07-05 17:47, H Hartley Sweeten wrote: On Friday, July 05, 2013 8:30 AM, Ian Abbott wrote: `comedi_alloc_spriv()` allocates private storage for a comedi subdevice and sets the `SRF_FREE_SPRIV` flag in the `runflags` member of the subdevice to allow the private storage to be automatically

RE: [PATCH] staging: comedi: avoid memleak for subdevice private

2013-07-05 Thread H Hartley Sweeten
On Friday, July 05, 2013 8:30 AM, Ian Abbott wrote: > `comedi_alloc_spriv()` allocates private storage for a comedi subdevice > and sets the `SRF_FREE_SPRIV` flag in the `runflags` member of the > subdevice to allow the private storage to be automatically freed when > the comedi device is being cle