RDMA/ucma: Convert open-coded equivalent to memdup_user()
authorRoland Dreier <roland@purestorage.com>
Fri, 27 Jul 2012 20:27:45 +0000 (13:27 -0700)
committerRoland Dreier <roland@purestorage.com>
Fri, 27 Jul 2012 20:27:45 +0000 (13:27 -0700)
commit0764c76ecb06987749bce49657e473e6605f09c4
treea756c573941b8a533e49441fb92da49f13cc5559
parent4e289045286c5f20d7d8f86b18679bad9e9a2003
RDMA/ucma: Convert open-coded equivalent to memdup_user()

Suggested by scripts/coccinelle/api/memdup_user.cocci.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/ucma.c