Skip to content

Commit

Permalink
cpufreq: intel_pstate: Fix missing return statement
Browse files Browse the repository at this point in the history
Fix missing return statement when writing "off" to intel_pstate status
sysfs I/F.

Fixes: 55671ea ("cpufreq: intel_pstate: Free memory only when turning off")
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Zhang Rui authored and Rafael J. Wysocki committed Sep 30, 2020
1 parent a1b8638 commit fc7d175
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/cpufreq/intel_pstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -2781,6 +2781,7 @@ static int intel_pstate_update_status(const char *buf, size_t size)

cpufreq_unregister_driver(intel_pstate_driver);
intel_pstate_driver_cleanup();
return 0;
}

if (size == 6 && !strncmp(buf, "active", size)) {
Expand Down

0 comments on commit fc7d175

Please sign in to comment.