diff options
author | Ofir Bitton <obitton@habana.ai> | 2021-07-06 12:06:15 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2021-08-29 09:47:46 +0300 |
commit | 40e35d195d8c18016011ae3e8ffbac765edc3e6f (patch) | |
tree | 92c8900639ab355515ea1cb8c59a682327340c4b | |
parent | 77977ac875f2f1928aa24362f490eef37e063308 (diff) | |
download | linux-40e35d195d8c18016011ae3e8ffbac765edc3e6f.tar.xz |
habanalabs: missing mutex_unlock in process kill procedure
missing mutex unlock once driver is giving up killing user processes.
Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
-rw-r--r-- | drivers/misc/habanalabs/common/device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/common/device.c b/drivers/misc/habanalabs/common/device.c index 86426052a191..28fe15a28361 100644 --- a/drivers/misc/habanalabs/common/device.c +++ b/drivers/misc/habanalabs/common/device.c @@ -822,6 +822,7 @@ static int device_kill_open_processes(struct hl_device *hdev, u32 timeout) } else { dev_warn(hdev->dev, "Can't get task struct for PID so giving up on killing process\n"); + mutex_unlock(&hdev->fpriv_list_lock); return -ETIME; } } |