Re: [PATCH] message/fusion/mptbase.c: Use kmemdup instead of memcpy and kmalloc

2019-05-22 Thread Bharath Vedartham
On Wed, May 22, 2019 at 04:48:33AM -0700, Joe Perches wrote: > On Wed, 2019-05-22 at 15:23 +0530, Bharath Vedartham wrote: > > Replace kmalloc + memcpy with kmemdup. > > This was reported by coccinelle. > [] > > diff --git a/drivers/message/fusion/mptbase.c > > b/drivers/message/fusion/mptbase.c >

Re: [PATCH] message/fusion/mptbase.c: Use kmemdup instead of memcpy and kmalloc

2019-05-22 Thread Joe Perches
On Wed, 2019-05-22 at 15:23 +0530, Bharath Vedartham wrote: > Replace kmalloc + memcpy with kmemdup. > This was reported by coccinelle. [] > diff --git a/drivers/message/fusion/mptbase.c > b/drivers/message/fusion/mptbase.c [] > @@ -6001,13 +6001,12 @@ mpt_findImVolumes(MPT_ADAPTER *ioc) > i

[PATCH] message/fusion/mptbase.c: Use kmemdup instead of memcpy and kmalloc

2019-05-22 Thread Bharath Vedartham
Replace kmalloc + memcpy with kmemdup. This was reported by coccinelle. Signed-off-by: Bharath Vedartham --- drivers/message/fusion/mptbase.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index d8882b0..