qla2xxx: Use kmemdup instead of kmalloc + memcpy
authorBenoit Taine <benoit.taine@lip6.fr>
Mon, 26 May 2014 15:21:16 +0000 (17:21 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 May 2014 16:13:19 +0000 (18:13 +0200)
commitc1818f17b58e416ec19653be430e9e2925cec35c
tree4da70e730b3435747cae039c242d49d738c09b9f
parent3d30b439f0f02416e8bd784a52d0321e0c25f9fc
qla2xxx: Use kmemdup instead of kmalloc + memcpy

This issue was reported by coccicheck using the semantic patch
at scripts/coccinelle/api/memdup.cocci

Signed-off-by: Benoit Taine <benoit.taine@lip6.fr>
Acked-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla2xxx/qla_mbx.c