Skip to content
Commit f4ad9dbc authored by Oded Gabbay's avatar Oded Gabbay Committed by Greg Kroah-Hartman
Browse files

habanalabs: prevent possible out-of-bounds array access

[ Upstream commit cea7a044

 ]

Queue index is received from the user. Therefore, we must validate it
before using it to access the queue props array.

Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: default avatarTomer Tayar <ttayar@habana.ai>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 15692a52
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment