diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-21 00:06:13 -0500 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2012-11-26 05:17:48 -0500 |
commit | b9e1c8e821e7768d5b8629ad7748456af6feece3 (patch) | |
tree | 9f3fbe8dcbcc1d186a69124a90793ca82b5ed143 /drivers/devfreq | |
parent | 389baed01edd298c9622c6e28de5e7e250c8767d (diff) |
PM / devfreq: Fix incorrect argument in error message
'g' is cast to the error return code. Hence gives the following error
which is fixed by this patch.
drivers/devfreq/devfreq.c:645 devfreq_remove_governor() error:
'g' dereferencing possible ERR_PTR()
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq')
-rw-r--r-- | drivers/devfreq/devfreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 1a78ad9e1bd0..ac4334fac2c6 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c | |||
@@ -643,7 +643,7 @@ int devfreq_remove_governor(struct devfreq_governor *governor) | |||
643 | g = find_devfreq_governor(governor->name); | 643 | g = find_devfreq_governor(governor->name); |
644 | if (IS_ERR(g)) { | 644 | if (IS_ERR(g)) { |
645 | pr_err("%s: governor %s not registered\n", __func__, | 645 | pr_err("%s: governor %s not registered\n", __func__, |
646 | g->name); | 646 | governor->name); |
647 | err = -EINVAL; | 647 | err = -EINVAL; |
648 | goto err_out; | 648 | goto err_out; |
649 | } | 649 | } |