]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit852931eb8f21904ecf0ff55d22f3dece1225988b
tree07fbecfba23dd360d99e396c290e5a6a4c51930c
parentc4ba7349f5dccd0542a04e1469cfb783adcc3ba6
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