]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/i40iw: Use kmemdup rather than open coding
authorFuqian Huang <huangfq.daxian@gmail.com>
Wed, 3 Jul 2019 16:27:42 +0000 (00:27 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 3 Jul 2019 17:34:42 +0000 (14:34 -0300)
commitcda8cf56d8e29c70dc8a3d989846c66ed1638e74
tree3b058b97768593ee64c2169fef451b38945c3565
parent5d7d78eaecc5c91c9b2001e544a0ae2788d40d1c
IB/i40iw: Use kmemdup rather than open coding

Use kmemdump instead of kzmalloc + memcpy.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw_cm.c