diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-12 08:16:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-12 08:39:43 +0200 |
commit | c8baf9979daec8410c5b701eec5074941a27bb8f (patch) | |
tree | 7094e502cfa8d214dd09d207193feb51d92a922f /include | |
parent | 115a5769d710d60da4cfb4507c68029d5c55bc29 (diff) |
atomisp: don't let it go past pipes array
[ Upstream commit 1f6c45ac5fd70ab59136ab5babc7def269f3f509 ]
In practice, IA_CSS_PIPE_ID_NUM should never be used when
calling atomisp_q_video_buffers_to_css(), as the driver should
discover the right pipe before calling it.
Yet, if some pipe parsing issue happens, it could end using
it.
So, add a WARN_ON() to prevent such case.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions