habanalabs: cannot sleep while holding spinlock
authorfarah kassabri <fkassabri@habana.ai>
Sun, 15 Aug 2021 08:16:16 +0000 (11:16 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 1 Sep 2021 15:38:24 +0000 (18:38 +0300)
commit607b1468c2263e082d74c1a3e71399a9026b41ce
treeed5136ebbe9056783e121b1007b58d6cc1fbb2f1
parent698f744aa858e4a5bfcef3f5e0cfc57a15d5b64a
habanalabs: cannot sleep while holding spinlock

Fix 2 areas in the code where it's possible the code will
go to sleep while holding a spinlock.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: farah kassabri <fkassabri@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_buffer.c
drivers/misc/habanalabs/common/memory.c