Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: qcom: venus: fix incorrect return value
[ Upstream commit 51b74c0 ] 'pd' can be NULL, and in that case it shouldn't be passed to PTR_ERR. Fixes a smatch warning: drivers/media/platform/qcom/venus/pm_helpers.c:873 vcodec_domains_get() warn: passing zero to 'PTR_ERR' Signed-off-by: Hans Verkuil <[email protected]> Reviewed-by: Bryan O'Donoghue <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information