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

media: venus: Limit HFI sessions to the maximum supported



[ Upstream commit 20891170 ]

Currently we rely on firmware to return error when we reach the maximum
supported number of sessions. But this errors are happened at reqbuf
time which is a bit later. The more reasonable way looks like is to
return the error on driver open.

To achieve that modify hfi_session_create to return error when we reach
maximum count of sessions and thus refuse open.

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 659cb442
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment