]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9af1084d681d98282e484c35e10962ee791c9276
treef2dbea3edf1a2b771fe27149a9b95a5c7371eb54
parent672e1d64bf4252e2ad38f45a85f6b81f6c3a5c36
habanalabs: bugs fixes in timestamps buff alloc

[ Upstream commit af384182fc346b0f634a1d207957315f741e90ae ]

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

Fixes: 1af1da7e48e1 ("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