Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcd6b97e authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "PM / devfreq: gpubw_mon: Add null check for governor private data"

parents 9fb091f2 61eeb229
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -225,11 +225,12 @@ static int devfreq_gpubw_event_handler(struct devfreq *devfreq,
	case DEVFREQ_GOV_SUSPEND:
	case DEVFREQ_GOV_SUSPEND:
		{
		{
			struct devfreq_msm_adreno_tz_data *priv = devfreq->data;
			struct devfreq_msm_adreno_tz_data *priv = devfreq->data;

			if (priv) {
				priv->bus.total_time = 0;
				priv->bus.total_time = 0;
				priv->bus.gpu_time = 0;
				priv->bus.gpu_time = 0;
				priv->bus.ram_time = 0;
				priv->bus.ram_time = 0;
			}
			}
		}
		break;
		break;
	default:
	default:
		result = 0;
		result = 0;