]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
qla4xxx: Use kmemdup instead of kmalloc + memcpy
authorBenoit Taine <benoit.taine@lip6.fr>
Mon, 26 May 2014 15:21:13 +0000 (17:21 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 28 May 2014 16:13:19 +0000 (18:13 +0200)
commit3d30b439f0f02416e8bd784a52d0321e0c25f9fc
tree5ac24b24e79b4daa25cc73e054138c9cbf03a1ce
parentf92f82d676d40d262733c48da5837196e8bc9f18
qla4xxx: 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: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla4xxx/ql4_os.c