--- zzzz-none-000/linux-3.10.107/drivers/macintosh/ams/ams-input.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/macintosh/ams/ams-input.c 2021-02-04 17:41:59.000000000 +0000 @@ -118,8 +118,12 @@ { unsigned long enable; int error = 0; + int ret; - if (strict_strtoul(buf, 0, &enable) || enable > 1) + ret = kstrtoul(buf, 0, &enable); + if (ret) + return ret; + if (enable > 1) return -EINVAL; mutex_lock(&ams_input_mutex);