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

Commit 503edf72 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss: Add NULL check for PM related APIs"

parents 50f04217 d6841a6d
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2521,12 +2521,22 @@ static void __exit cnss_exit(void)

void cnss_request_pm_qos(u32 qos_val)
{
	if (!penv) {
		pr_err("%s: penv is NULL!\n", __func__);
		return;
	}

	pm_qos_add_request(&penv->qos_request, PM_QOS_CPU_DMA_LATENCY, qos_val);
}
EXPORT_SYMBOL(cnss_request_pm_qos);

void cnss_remove_pm_qos(void)
{
	if (!penv) {
		pr_err("%s: penv is NULL!\n", __func__);
		return;
	}

	pm_qos_remove_request(&penv->qos_request);
}
EXPORT_SYMBOL(cnss_remove_pm_qos);