]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: Revert "Use strndup_user() in dispatch_proc_write()"
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Jul 2020 09:40:07 +0000 (12:40 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Jul 2020 09:45:06 +0000 (12:45 +0300)
commitcf3a312e9e3e30c4a27e330851b9bf8314b9e49c
treee0da6e0acca1b3b738571689cf781cbe9db8e8db
parenta2ee539839b1e391a6ff37f6202a56adf4f293c1
platform/x86: thinkpad_acpi: Revert "Use strndup_user() in dispatch_proc_write()"

This reverts commit 852931eb8f21904ecf0ff55d22f3dece1225988b.

This broke procfs interface due to neglecting the fact that
the strings are not coming NULL terminated.

Revert the change till we will have a better clean up.

Fixes: 852931eb8f21 ("platform/x86: thinkpad_acpi: Use strndup_user() in dispatch_proc_write()")
Reported-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c