platform/x86: toshiba_acpi: use memdup_user_nul
authorGeliang Tang <geliangtang@gmail.com>
Sat, 6 May 2017 15:40:19 +0000 (23:40 +0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 15 May 2017 09:06:10 +0000 (12:06 +0300)
commitf0ee1a6d319df56e49ca8308c5e9b69a9017f69d
tree057a95e082448600b11c6d807a59608cbc9dccb9
parent7f363145992cebf4ea760447f1cfdf6f81459683
platform/x86: toshiba_acpi: use memdup_user_nul

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

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/toshiba_acpi.c