OSDN Git Service

platform/x86: thinkpad_acpi: Use strndup_user() in dispatch_proc_write()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 11 May 2020 12:54:14 +0000 (15:54 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 15 May 2020 12:45:14 +0000 (15:45 +0300)
commit35d13c7a05126a5a54a1ef40aff4c6984474e604
tree07fbecfba23dd360d99e396c290e5a6a4c51930c
parentbe51bd4585728baefc5669d4af2be0eb68b90e3e
platform/x86: thinkpad_acpi: Use strndup_user() in dispatch_proc_write()

Simplify the user copy code by using strndup_user().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c