Commit fc7d1755 authored by Zhang Rui's avatar Zhang Rui Committed by Rafael J. Wysocki
Browse files

cpufreq: intel_pstate: Fix missing return statement



Fix missing return statement when writing "off" to intel_pstate status
sysfs I/F.

Fixes: 55671ea3 ("cpufreq: intel_pstate: Free memory only when turning off")
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent a1b8638b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)) {