summaryrefslogtreecommitdiff
path: root/drivers/soc/qcom/msm_performance.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soc/qcom/msm_performance.c')
-rw-r--r--drivers/soc/qcom/msm_performance.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/soc/qcom/msm_performance.c b/drivers/soc/qcom/msm_performance.c
index 1857d369bc94..8b78ac889eac 100644
--- a/drivers/soc/qcom/msm_performance.c
+++ b/drivers/soc/qcom/msm_performance.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2018, 2020, 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
@@ -2728,9 +2728,9 @@ error:
for (i = 0; i < num_clusters; i++) {
if (!managed_clusters[i])
break;
- if (managed_clusters[i]->offlined_cpus)
+ if (managed_clusters[i]->offlined_cpus != NULL)
free_cpumask_var(managed_clusters[i]->offlined_cpus);
- if (managed_clusters[i]->cpus)
+ if (managed_clusters[i]->cpus != NULL)
free_cpumask_var(managed_clusters[i]->cpus);
kfree(managed_clusters[i]);
}