IB/qib: Use memdup_user() rather than duplicating its implementation
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 19 Aug 2016 06:50:23 +0000 (08:50 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 23 Aug 2016 16:38:24 +0000 (12:38 -0400)
commit48ef5865d08fa0a36d786f2f8e12c6194d27538b
treefcddba0d36ef7e6c8950a3e0f19052bb39a7fc29
parent30b03b1528b60623986ee0b50ec0e5dab9094be8
IB/qib: Use memdup_user() rather than duplicating its implementation

Reuse existing functionality from memdup_user() instead of keeping
duplicate source code.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qib/qib_fs.c