Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F116018500
D41579.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41579.diff
View Options
diff --git a/sys/crypto/armv8/armv8_crypto.c b/sys/crypto/armv8/armv8_crypto.c
--- a/sys/crypto/armv8/armv8_crypto.c
+++ b/sys/crypto/armv8/armv8_crypto.c
@@ -44,12 +44,10 @@
#include <sys/kernel.h>
#include <sys/bus.h>
#include <sys/endian.h>
-#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/module.h>
#include <sys/queue.h>
-#include <sys/rwlock.h>
#include <sys/smp.h>
#include <sys/uio.h>
@@ -62,9 +60,7 @@
#include <crypto/rijndael/rijndael.h>
struct armv8_crypto_softc {
- int dieing;
int32_t cid;
- struct rwlock lock;
bool has_pmul;
};
@@ -119,7 +115,6 @@
uint64_t reg;
sc = device_get_softc(dev);
- sc->dieing = 0;
reg = READ_SPECIALREG(id_aa64isar0_el1);
@@ -133,8 +128,6 @@
return (ENOMEM);
}
- rw_init(&sc->lock, "armv8crypto");
-
return (0);
}
@@ -145,13 +138,8 @@
sc = device_get_softc(dev);
- rw_wlock(&sc->lock);
- sc->dieing = 1;
- rw_wunlock(&sc->lock);
crypto_unregister_all(sc->cid);
- rw_destroy(&sc->lock);
-
return (0);
}
@@ -273,21 +261,12 @@
armv8_crypto_newsession(device_t dev, crypto_session_t cses,
const struct crypto_session_params *csp)
{
- struct armv8_crypto_softc *sc;
struct armv8_crypto_session *ses;
int error;
- sc = device_get_softc(dev);
- rw_wlock(&sc->lock);
- if (sc->dieing) {
- rw_wunlock(&sc->lock);
- return (EINVAL);
- }
-
ses = crypto_get_driver_session(cses);
error = armv8_crypto_cipher_setup(ses, csp, csp->csp_cipher_key,
csp->csp_cipher_klen);
- rw_wunlock(&sc->lock);
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 2, 4:40 PM (18 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17908109
Default Alt Text
D41579.diff (1 KB)
Attached To
Mode
D41579: armv8_crypto: Remove dieing flag and rw lock
Attached
Detach File
Event Timeline
Log In to Comment