Unlock process lock when return error from getrobustlist call and add

an forgotten dtrace probe when return the same error.

MFC after:	3 days
XMFC with:	r292743
This commit is contained in:
Dmitry Chagin 2016-01-10 07:36:43 +00:00
parent 004d3e30a7
commit 6437b8e7d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293627

View file

@ -1099,8 +1099,12 @@ linux_get_robust_list(struct thread *td, struct linux_get_robust_list_args *args
ESRCH);
return (ESRCH);
}
if (SV_PROC_ABI(td2->td_proc) != SV_ABI_LINUX)
if (SV_PROC_ABI(td2->td_proc) != SV_ABI_LINUX) {
LIN_SDT_PROBE1(futex, linux_get_robust_list, return,
EPERM);
PROC_UNLOCK(td2->td_proc);
return (EPERM);
}
em = em_find(td2);
KASSERT(em != NULL, ("get_robust_list: emuldata notfound.\n"));