]> asedeno.scripts.mit.edu Git - linux.git/commit
PM / devfreq: Check NULL governor in available_governors_show
authorLeonard Crestez <leonard.crestez@nxp.com>
Tue, 24 Sep 2019 07:26:53 +0000 (10:26 +0300)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 6 Nov 2019 03:03:59 +0000 (12:03 +0900)
commitd68adc8f85cd757bd33c8d7b2660ad6f16f7f3dc
treea6e3df4b4769af757083cda3a3e2fc9b79598b56
parent36eba5deffac3793372ebad4899591103aa3a947
PM / devfreq: Check NULL governor in available_governors_show

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>
drivers/devfreq/devfreq.c