From: Greg Kroah-Hartman Date: Wed, 27 Nov 2019 12:02:46 +0000 (+0100) Subject: fix up 4.4 cpufreq patch X-Git-Tag: v4.4.204~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=02a13bf5d9467ac49fd8bb8341efc7bcec87f9f7;p=thirdparty%2Fkernel%2Fstable-queue.git fix up 4.4 cpufreq patch --- diff --git a/queue-4.4/cpufreq-add-null-checks-to-show-and-store-methods-of-cpufreq.patch b/queue-4.4/cpufreq-add-null-checks-to-show-and-store-methods-of-cpufreq.patch index f6c129959ad..9ffc888f6f2 100644 --- a/queue-4.4/cpufreq-add-null-checks-to-show-and-store-methods-of-cpufreq.patch +++ b/queue-4.4/cpufreq-add-null-checks-to-show-and-store-methods-of-cpufreq.patch @@ -44,13 +44,13 @@ Signed-off-by: Greg Kroah-Hartman down_read(&policy->rwsem); if (fattr->show) -@@ -1084,6 +1087,9 @@ static void cpufreq_policy_put_kobj(stru - up_write(&policy->rwsem); - kobject_put(kobj); +@@ -840,6 +843,9 @@ static ssize_t store(struct kobject *kob + struct freq_attr *fattr = to_attr(attr); + ssize_t ret = -EINVAL; + if (!fattr->store) + return -EIO; + - /* - * We need to make sure that the underlying kobj is - * actually not referenced anymore by anybody before we + get_online_cpus(); + + if (!cpu_online(policy->cpu))