]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Code reuse with memdup_copy
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Wed, 8 Feb 2017 13:28:31 +0000 (05:28 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 19 Feb 2017 14:18:45 +0000 (09:18 -0500)
commitdfac3c612856b259da32df5f91c762808301f81e
tree0f809d1062efea20541567f983f2805498c369c1
parente242be7b37ba817d2c6eeba9ec97e03ca791c28f
IB/hfi1: Code reuse with memdup_copy

Update several usages of kmalloc/user_copy to memdup_copy and
memdup_copy_nul.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/debugfs.c
drivers/infiniband/hw/hfi1/user_exp_rcv.c
drivers/infiniband/hw/hfi1/user_sdma.c