[ibm-acpi-devel] [PATCH] platform/x86: thinkpad_acpi: psensor interface

2020-07-15 Thread Mark Pearson
Some Lenovo Thinkpad platforms are equipped with a 'palm sensor' so as to be able to determine if a user is physically proximate to the device. This patch provides the ability to retrieve the psensor state via sysfs entrypoints and will be used by userspace for WWAN functionality to control the tr

Re: [ibm-acpi-devel] [PATCH v1] platform/x86: thinkpad_acpi: Limit size when call strndup_user()

2020-07-15 Thread Andy Shevchenko
On Tue, Jul 14, 2020 at 4:30 PM Hans de Goede wrote: > On 7/14/20 12:42 PM, Andy Shevchenko wrote: ... > > + kernbuf = strndup_user(userbuf, min_t(long, count, PAGE_SIZE)); > This is not going to work: You are right! > Can we please just go with the revert for now? Yes, I have reverted i