Commit e7d7fd8c authored by Stanimir Varbanov's avatar Stanimir Varbanov Committed by Greg Kroah-Hartman
Browse files

media: venus: hfi: Correct session init return error



[ Upstream commit e922a33e ]

The hfi_session_init can be called many times and it returns
EINVAL when the session was already initialized. This error code
(EINVAL) is confusing for the callers. Change hfi_session_init to
return EALREADY error code when the session has been already
initialized.

Tested-by: default avatarFritz Koenig <frkoenig@chromium.org>
Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Stable-dep-of: 9edaaa8e ("media: venus: hfi_parser: refactor hfi packet parsing logic")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 94ce606d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment