venus: pm_helpers: Fix error check in vcodec_domains_get()
authorTang Bin <tangbin@cmss.chinamobile.com>
Tue, 13 Sep 2022 06:37:00 +0000 (14:37 +0800)
committerStanimir Varbanov <stanimir.varbanov@linaro.org>
Tue, 25 Oct 2022 07:38:56 +0000 (10:38 +0300)
commit0f6e8d8c94a82e85e1b9b62a7671990740dc6f70
treee45e83ab79dd70698f74569e8acc5856fc280d08
parent1eee6bb9b64bb3a914433bb7ec739d2e67cba5bd
venus: pm_helpers: Fix error check in vcodec_domains_get()

In the function vcodec_domains_get(), dev_pm_domain_attach_by_name()
may return NULL in some cases, so IS_ERR() doesn't meet the
requirements. Thus fix it.

Fixes: 7482a983dea3 ("media: venus: redesign clocks and pm domains control")
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
drivers/media/platform/qcom/venus/pm_helpers.c