summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-03-23 09:44:42 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-03-23 09:44:42 -0700
commita3eacc729616b82868a18db1ee7f487788b7edb9 (patch)
tree125c34e565c584fe0c14cde52368e1b5e461bfc6
parentb66d4121c663659b99a79d9887d0ebba49656cb5 (diff)
parentd30e4d4e549f120b2324f937030e67469abf7a5d (diff)
Merge "devfreq_spdm: Handle spurious interrupts during bootup"
-rw-r--r--drivers/devfreq/governor_spdm_bw_hyp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/devfreq/governor_spdm_bw_hyp.c b/drivers/devfreq/governor_spdm_bw_hyp.c
index cd068a3097ce..f18b72af5fc4 100644
--- a/drivers/devfreq/governor_spdm_bw_hyp.c
+++ b/drivers/devfreq/governor_spdm_bw_hyp.c
@@ -1,5 +1,5 @@
/*
-*Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+*Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
*
*This program is free software; you can redistribute it and/or modify
*it under the terms of the GNU General Public License version 2 and
@@ -84,6 +84,10 @@ static irqreturn_t threaded_isr(int irq, void *dev_id)
(int)desc.arg[0], ext_status);
mutex_lock(&devfreqs_lock);
list_for_each_entry(data, &devfreqs, list) {
+ if (data == NULL || data->devfreq == NULL) {
+ pr_err("Spurious interrupts\n");
+ break;
+ }
if (data->spdm_client == desc.ret[0]) {
devfreq_monitor_suspend(data->devfreq);
mutex_lock(&data->devfreq->lock);