pstore: use memdup_user
authorGeliang Tang <geliangtang@gmail.com>
Sat, 29 Apr 2017 01:45:16 +0000 (09:45 +0800)
committerKees Cook <keescook@chromium.org>
Wed, 28 Jun 2017 00:02:36 +0000 (17:02 -0700)
commit077090af337f7d833f82be3d556549512398de66
treee2573b974aedaa99bda80a07181050a95d7b3b9f
parentd3762358a739e7ef63873d6923938def99affa93
pstore: use memdup_user

Use memdup_user() helper instead of open-coding to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
fs/pstore/platform.c