Re: [PATCH] lightnvm: pblk: fix error path in pblk_lines_alloc_metadata

2017-09-21 Thread Matias Bjørling
On 09/21/2017 12:15 PM, Rakesh Pandit wrote: On Thu, Sep 21, 2017 at 11:56:46AM +0200, Javier González wrote: On 20 Sep 2017, at 21.50, Rakesh Pandit wrote: Use appropriate memory free calls based on allocation type used and also fix number of times free is called if kmalloc fails. Signed-off

Re: [PATCH] lightnvm: pblk: fix error path in pblk_lines_alloc_metadata

2017-09-21 Thread Rakesh Pandit
On Thu, Sep 21, 2017 at 11:56:46AM +0200, Javier González wrote: > > On 20 Sep 2017, at 21.50, Rakesh Pandit wrote: > > > > Use appropriate memory free calls based on allocation type used and > > also fix number of times free is called if kmalloc fails. > > > > Signed-off-by: Rakesh Pandit > >

Re: [PATCH] lightnvm: pblk: fix error path in pblk_lines_alloc_metadata

2017-09-21 Thread Javier González
> On 20 Sep 2017, at 21.50, Rakesh Pandit wrote: > > Use appropriate memory free calls based on allocation type used and > also fix number of times free is called if kmalloc fails. > > Signed-off-by: Rakesh Pandit > --- > drivers/lightnvm/pblk-init.c | 8 ++-- > 1 file changed, 6 insertions(

[PATCH] lightnvm: pblk: fix error path in pblk_lines_alloc_metadata

2017-09-20 Thread Rakesh Pandit
Use appropriate memory free calls based on allocation type used and also fix number of times free is called if kmalloc fails. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/pblk-init.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/lightnvm/pblk-init.c b/d