staging: lustre: llite: kzalloc/copy_to_user to memdup_user
authorTobin C Harding <me@tobin.cc>
Mon, 23 May 2016 00:14:22 +0000 (10:14 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:38:19 +0000 (22:38 -0700)
commitc6c7a17010697377df1241a2914e3c1e5582e234
treeb92f23f3d53300118e51d441e05ea96520ad90c6
parentdb3c16cdde24ecd59df0f24f93f1a4ba177f4b82
staging: lustre: llite: kzalloc/copy_to_user to memdup_user

kzalloc call followed by copy_to_user can be replaced by call to memdup_user.

Signed-off-by: Tobin C Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/dir.c