Re: [PATCH] staging: wilc1000: use kmemdup to replace kmalloc/memcpy

2018-03-14 Thread
On Wed, Mar 14, 2018 at 12:38:18PM +0100, Greg Kroah-Hartman wrote: > On Tue, Mar 13, 2018 at 06:19:32PM +0530, hariprasath.ela...@gmail.com wrote: > > From: HariPrasath Elango > > > > kmalloc followed by memcpy can be replaced by kmemdup.Also added the > > related

Re: [PATCH] staging: wilc1000: use kmemdup to replace kmalloc/memcpy

2018-03-14 Thread Greg Kroah-Hartman
On Tue, Mar 13, 2018 at 06:19:32PM +0530, hariprasath.ela...@gmail.com wrote: > From: HariPrasath Elango > > kmalloc followed by memcpy can be replaced by kmemdup.Also added the > related error handling part > > Signed-off-by: HariPrasath Elango

[PATCH] staging: wilc1000: use kmemdup to replace kmalloc/memcpy

2018-03-13 Thread hariprasath . elango
From: HariPrasath Elango kmalloc followed by memcpy can be replaced by kmemdup.Also added the related error handling part Signed-off-by: HariPrasath Elango --- drivers/staging/wilc1000/host_interface.c | 10 +++--- 1 file