author | Leonard Crestez <leonard.crestez@nxp.com> | |
Tue, 24 Sep 2019 07:26:53 +0000 (10:26 +0300) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Thu, 9 Jan 2020 09:19:03 +0000 (10:19 +0100) | ||
commit | ac57e1605822ec7dd23e3ad5a3a2719168b32c69 | |
tree | 2eae919183165341a86a6d89115ee43597969614 | tree | snapshot (tar.xz tar.gz zip) |
parent | 062ec830fd7610d369f0dc138f830a179f52da0c | commit | diff |
PM / devfreq: Check NULL governor in available_governors_show
commit d68adc8f85cd757bd33c8d7b2660ad6f16f7f3dc upstream.
The governor is initialized after sysfs attributes become visible so in
theory the governor field can be NULL here.
Fixes: bcf23c79c4e46 ("PM / devfreq: Fix available_governor sysfs")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit d68adc8f85cd757bd33c8d7b2660ad6f16f7f3dc upstream.
The governor is initialized after sysfs attributes become visible so in
theory the governor field can be NULL here.
Fixes: bcf23c79c4e46 ("PM / devfreq: Fix available_governor sysfs")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/devfreq/devfreq.c | diff | blob | history |