misc: mic: Use memdup_user() as a cleanup
authorVasyl Gomonovych <gomonovych@gmail.com>
Wed, 22 Nov 2017 15:25:30 +0000 (16:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Dec 2017 17:45:31 +0000 (18:45 +0100)
commit30b7a2c19e296fc4b8a9a21d67752d8dd55bc7dc
tree6e20370f3d7d53d2d30531f210d9b0c0edd0f861
parenteecf4f9dd940fc90b38693ec6cde9badf0bea56a
misc: mic: Use memdup_user() as a cleanup

Fix coccicheck warning which recommends to use memdup_user():

drivers/misc/mic/vop/vop_vringh.c:940:14-21: WARNING opportunity for memdup_user
drivers/misc/mic/vop/vop_vringh.c:998:8-15: WARNING opportunity for memdup_user

Generated by: scripts/coccinelle/memdup_user/memdup_user.cocci

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/vop/vop_vringh.c