Commit 094f5619 authored by Tang Bin's avatar Tang Bin Committed by Greg Kroah-Hartman
Browse files

venus: pm_helpers: Fix error check in vcodec_domains_get()



[ Upstream commit 0f6e8d8c ]

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: 7482a983 ("media: venus: redesign clocks and pm domains control")
Signed-off-by: default avatarTang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3c793a9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment