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:42:52 +0000 (12:42 +0300)
commite2e90804dc1c190dcc00e4ca481bfd847ee5efcd
tree8b4ed30f203d01209ee02c8849f5dee44869e684
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
platform/x86: thinkpad_acpi: Revert "Use strndup_user() in dispatch_proc_write()"

This reverts commit 35d13c7a05126a5a54a1ef40aff4c6984474e604.

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: 35d13c7a0512 ("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