habanalabs: bugs fixes in timestamps buff alloc
authorfarah kassabri <fkassabri@habana.ai>
Sun, 8 Jan 2023 15:33:44 +0000 (17:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:16 +0000 (09:33 +0100)
commitdeb9379af500d8c3181e59d122069d102fa4ec79
treef2dbea3edf1a2b771fe27149a9b95a5c7371eb54
parentbc579a2ee8b2e20c152b24b437d094832d8c9c9e
habanalabs: bugs fixes in timestamps buff alloc

[ Upstream commit 1693fef9e95dbe8ab767d208a02328fff13fbb94 ]

use argument instead of fixed GFP value for allocation
in Timestamps buffers alloc function.
change data type of size to size_t.

Fixes: 9158bf69e74f ("habanalabs: Timestamps buffers registration")
Signed-off-by: farah kassabri <fkassabri@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/common/memory.c