habanalabs: bugs fixes in timestamps buff alloc
authorfarah kassabri <fkassabri@habana.ai>
Sun, 8 Jan 2023 15:33:44 +0000 (17:33 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Thu, 26 Jan 2023 09:52:12 +0000 (11:52 +0200)
commit1693fef9e95dbe8ab767d208a02328fff13fbb94
tree7d53c0fd63dfc8724c435b9472b04392b2957f52
parent72848de04bbac214f927ec2f7f4e16a20161c169
habanalabs: bugs fixes in timestamps buff alloc

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>
drivers/accel/habanalabs/common/memory.c