armv8crypto: add missing unlock for session (after r336439)
Attempts to use cryptodev (e.g. tests at /usr/src/tests/sys/opencrypto with armv8crypto added to the module lists) were causing a panic. Submitted by: Greg V <greg_unrelenting.technology> Differential Revision: https://reviews.freebsd.org/D21012
This commit is contained in:
parent
e262ca6be6
commit
af77499f9c
@ -274,9 +274,11 @@ armv8_crypto_newsession(device_t dev, crypto_session_t cses,
|
||||
error = armv8_crypto_cipher_setup(ses, encini);
|
||||
if (error != 0) {
|
||||
CRYPTDEB("setup failed");
|
||||
rw_wunlock(&sc->lock);
|
||||
return (error);
|
||||
}
|
||||
|
||||
rw_wunlock(&sc->lock);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user