OSDN Git Service

scsi: message: fusion: Use kmemdup instead of memcpy and kmalloc
authorBharath Vedartham <linux.bhar@gmail.com>
Wed, 22 May 2019 16:01:49 +0000 (21:31 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 18 Jun 2019 23:46:24 +0000 (19:46 -0400)
commitb3b2a9f60fd9e38c45d4728cac78ddf5596f3bb0
treeadd33bc1cffc8305ac888fc5dc5583f4386a2fa9
parentde19212c2890d1bb1e2d0e303affba620b86819b
scsi: message: fusion: Use kmemdup instead of memcpy and kmalloc

Replace kmalloc + memcpy with kmemdup.

This was reported by coccinelle.

Signed-off-by: Bharath Vedartham <linux.bhar@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/message/fusion/mptbase.c