]> asedeno.scripts.mit.edu Git - linux.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)
commit1bb0d7b781b1ca647f1ae69665c0ad1de09a1174
tree0f809d1062efea20541567f983f2805498c369c1
parent832666c163f04306fa6823b8974bccf7bb5e5ad3
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