| 1732 | } |
| 1733 | |
| 1734 | void |
| 1735 | crypto_destroyreq(struct cryptop *crp) |
| 1736 | { |
| 1737 | #ifdef DIAGNOSTIC |
| 1738 | { |
| 1739 | struct cryptop *crp2; |
| 1740 | struct crypto_ret_worker *ret_worker; |
| 1741 | |
| 1742 | CRYPTO_Q_LOCK(); |
| 1743 | TAILQ_FOREACH(crp2, &crp_q, crp_next) { |
| 1744 | KASSERT(crp2 != crp, |
| 1745 | ("Freeing cryptop from the crypto queue (%p).", |
| 1746 | crp)); |
| 1747 | } |
| 1748 | CRYPTO_Q_UNLOCK(); |
| 1749 | |
| 1750 | FOREACH_CRYPTO_RETW(ret_worker) { |
| 1751 | CRYPTO_RETW_LOCK(ret_worker); |
| 1752 | TAILQ_FOREACH(crp2, &ret_worker->crp_ret_q, crp_next) { |
| 1753 | KASSERT(crp2 != crp, |
| 1754 | ("Freeing cryptop from the return queue (%p).", |
| 1755 | crp)); |
| 1756 | } |
| 1757 | CRYPTO_RETW_UNLOCK(ret_worker); |
| 1758 | } |
| 1759 | } |
| 1760 | #endif |
| 1761 | } |
| 1762 | |
| 1763 | void |
| 1764 | crypto_freereq(struct cryptop *crp) |
no outgoing calls
no test coverage detected