diff options
author | Dafna Hirschfeld <dafna3@gmail.com> | 2018-02-19 21:57:37 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-20 09:03:42 +0100 |
commit | 2baddf262e98762b36b0866065c21452fff1beda (patch) | |
tree | b0e1af90e63f16e8034c54ce0ec4b1726c8ea14b /drivers/staging/android | |
parent | staging: pi433: Split subtraction across 2 lines (diff) | |
download | linux-dev-2baddf262e98762b36b0866065c21452fff1beda.tar.xz linux-dev-2baddf262e98762b36b0866065c21452fff1beda.zip |
staging: lustre: use memdup_user to allocate memory and copy from user
Replace a call to kmalloc and a call to copy_from_user with a
call to memdup_user to simplify the code.
Issue found with coccicheck.
Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android')
0 files changed, 0 insertions, 0 deletions