mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
habanalabs: use get_task_pid() to take PID
find_get_pid() isn't good in case the user process was run inside docker. As a result, we didn't had the PID and we couldn't kill the user process in case the device got stuck and we needed to reset the device. Signed-off-by: Dani Liberman <dliberman@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5d1a0de2c7
commit
b0b09b7a8b
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ int hl_device_open_ctrl(struct inode *inode, struct file *filp)
|
|||
hpriv->filp = filp;
|
||||
nonseekable_open(inode, filp);
|
||||
|
||||
hpriv->taskpid = find_get_pid(current->pid);
|
||||
hpriv->taskpid = get_task_pid(current, PIDTYPE_PID);
|
||||
|
||||
mutex_lock(&hdev->fpriv_ctrl_list_lock);
|
||||
|
||||
|
|
Loading…
Reference in a new issue