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

This reverts commit 7bb01685a1bdc58e8e7c3d0987b4331c06477d45.

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: 7bb01685a1bd ("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