staging/lustre/llite: Fix improper userspace access in ll_fiemap
authorOleg Drokin <green@linuxhacker.ru>
Sun, 3 Jan 2016 17:05:48 +0000 (12:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 22:34:00 +0000 (14:34 -0800)
commit97514241423bfebf4a87395698c54d8c244eaf22
tree62ae154f697375a387582329fa0cb732b03e920a
parent4c6243ec8437550019963335f252842a750cb6f6
staging/lustre/llite: Fix improper userspace access in ll_fiemap

Cannot use memcpy, but use copy_to/from_user instead

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/file.c