mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 07:15:58 +08:00
Delete struct proc p_mtx lock
Usage of this lock is highly dangerous since agents may assume that this lock is actually used for process management. There is only one process in RTEMS.
This commit is contained in:
@@ -264,10 +264,15 @@ crypto_terminate(struct proc **pp, void *q)
|
||||
*pp = NULL;
|
||||
if (p) {
|
||||
wakeup_one(q);
|
||||
#ifndef __rtems__
|
||||
PROC_LOCK(p); /* NB: insure we don't miss wakeup */
|
||||
CRYPTO_DRIVER_UNLOCK(); /* let crypto_finis progress */
|
||||
msleep(p, &p->p_mtx, PWAIT, "crypto_destroy", 0);
|
||||
PROC_UNLOCK(p);
|
||||
#else /* __rtems__ */
|
||||
/* FIXME: The hacks with the PROC_LOCK() do not work on RTEMS */
|
||||
BSD_ASSERT(0);
|
||||
#endif /* __rtems__ */
|
||||
CRYPTO_DRIVER_LOCK();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user