Re: [PATCH] nvmem: core: fix leaks on registration errors

2017-06-07 Thread Srinivas Kandagatla
On 16/05/17 14:44, Johan Hovold wrote: Make sure to deregister and release the nvmem device and underlying memory on registration errors. Note that the private data must be freed using put_device() once the struct device has been initialised. Also note that there's a related reference leak

Re: [PATCH] nvmem: core: fix leaks on registration errors

2017-06-07 Thread Srinivas Kandagatla
On 16/05/17 14:44, Johan Hovold wrote: Make sure to deregister and release the nvmem device and underlying memory on registration errors. Note that the private data must be freed using put_device() once the struct device has been initialised. Also note that there's a related reference leak

Re: [PATCH] nvmem: core: fix leaks on registration errors

2017-05-17 Thread Andrey Smirnov
On Wed, May 17, 2017 at 1:51 AM, Johan Hovold wrote: > On Tue, May 16, 2017 at 02:28:28PM -0700, Andrey Smirnov wrote: >> On Tue, May 16, 2017 at 6:44 AM, Johan Hovold wrote: >> > Make sure to deregister and release the nvmem device and underlying >> > memory

Re: [PATCH] nvmem: core: fix leaks on registration errors

2017-05-17 Thread Andrey Smirnov
On Wed, May 17, 2017 at 1:51 AM, Johan Hovold wrote: > On Tue, May 16, 2017 at 02:28:28PM -0700, Andrey Smirnov wrote: >> On Tue, May 16, 2017 at 6:44 AM, Johan Hovold wrote: >> > Make sure to deregister and release the nvmem device and underlying >> > memory on registration errors. >> > >> >

Re: [PATCH] nvmem: core: fix leaks on registration errors

2017-05-17 Thread Johan Hovold
On Tue, May 16, 2017 at 02:28:28PM -0700, Andrey Smirnov wrote: > On Tue, May 16, 2017 at 6:44 AM, Johan Hovold wrote: > > Make sure to deregister and release the nvmem device and underlying > > memory on registration errors. > > > > Note that the private data must be freed

Re: [PATCH] nvmem: core: fix leaks on registration errors

2017-05-17 Thread Johan Hovold
On Tue, May 16, 2017 at 02:28:28PM -0700, Andrey Smirnov wrote: > On Tue, May 16, 2017 at 6:44 AM, Johan Hovold wrote: > > Make sure to deregister and release the nvmem device and underlying > > memory on registration errors. > > > > Note that the private data must be freed using put_device()

Re: [PATCH] nvmem: core: fix leaks on registration errors

2017-05-16 Thread Andrey Smirnov
On Tue, May 16, 2017 at 6:44 AM, Johan Hovold wrote: > Make sure to deregister and release the nvmem device and underlying > memory on registration errors. > > Note that the private data must be freed using put_device() once the > struct device has been initialised. > > Also

Re: [PATCH] nvmem: core: fix leaks on registration errors

2017-05-16 Thread Andrey Smirnov
On Tue, May 16, 2017 at 6:44 AM, Johan Hovold wrote: > Make sure to deregister and release the nvmem device and underlying > memory on registration errors. > > Note that the private data must be freed using put_device() once the > struct device has been initialised. > > Also note that there's a

[PATCH] nvmem: core: fix leaks on registration errors

2017-05-16 Thread Johan Hovold
Make sure to deregister and release the nvmem device and underlying memory on registration errors. Note that the private data must be freed using put_device() once the struct device has been initialised. Also note that there's a related reference leak in the deregistration function as reported

[PATCH] nvmem: core: fix leaks on registration errors

2017-05-16 Thread Johan Hovold
Make sure to deregister and release the nvmem device and underlying memory on registration errors. Note that the private data must be freed using put_device() once the struct device has been initialised. Also note that there's a related reference leak in the deregistration function as reported