habanalabs/gaudi: fix shift out of bounds
authorOfir Bitton <obitton@habana.ai>
Wed, 15 Jun 2022 13:11:31 +0000 (16:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:40:35 +0000 (11:40 +0200)
commitb09e5ab18c9f52ff14cf968770e15d5b2dd85c43
treef589a46172642ebc7da981f27cdac50e9e090210
parent1693fe9ba2ef4add6d7cfa71154be48eb9ee72ff
habanalabs/gaudi: fix shift out of bounds

[ Upstream commit 01622098aeb05a5efbb727199bbc2a4653393255 ]

When validating NIC queues, queue offset calculation must be
performed only for NIC queues.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c