Skip to content

Commit fc7d175

Browse files
zhang-ruirafaeljw
authored andcommitted
cpufreq: intel_pstate: Fix missing return statement
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent a1b8638 commit fc7d175

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2781,6 +2781,7 @@ static int intel_pstate_update_status(const char *buf, size_t size)
27812781

27822782
cpufreq_unregister_driver(intel_pstate_driver);
27832783
intel_pstate_driver_cleanup();
2784+
return 0;
27842785
}
27852786

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

0 commit comments

Comments
 (0)